Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle string encoding conversion fail #996

Merged

Conversation

ArnoStiefvater
Copy link
Member

What:

Handle string encoding converison fail

Why:

Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side with a seperate PR.

How:

Checklist:

  • Tests
  • PR merge commit message adjusted

Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.
@jjnicola jjnicola changed the title Handle string encoding converison fail Handle string encoding conversion fail Dec 9, 2021
@ArnoStiefvater ArnoStiefvater enabled auto-merge (squash) December 9, 2021 11:13
@ArnoStiefvater ArnoStiefvater merged commit 15f04b4 into greenbone:main Dec 9, 2021
mergify bot pushed a commit that referenced this pull request Dec 9, 2021
Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.

(cherry picked from commit 15f04b4)
mergify bot pushed a commit that referenced this pull request Dec 9, 2021
Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.

(cherry picked from commit 15f04b4)

# Conflicts:
#	misc/plugutils.c
ArnoStiefvater pushed a commit that referenced this pull request Dec 13, 2021
Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.

(cherry picked from commit 15f04b4)
ArnoStiefvater added a commit that referenced this pull request Dec 13, 2021
Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.

(cherry picked from commit 15f04b4)
ArnoStiefvater pushed a commit that referenced this pull request Dec 14, 2021
Previously a failed conversion was not cought
which meant Null was supplied to kb_item_push_str
which resulted in a segfault.

kb_item_push_str will also be made more resilient
on gvm-libs side.

(cherry picked from commit 15f04b4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants