Skip to content

jp3d: Replace sprintf() by snprintf() in volumetobin()#1101

Merged
rouault merged 1 commit intouclouvain:masterfrom
kbabioch:fix/jp3d-sprintf-overflow
Mar 4, 2018
Merged

jp3d: Replace sprintf() by snprintf() in volumetobin()#1101
rouault merged 1 commit intouclouvain:masterfrom
kbabioch:fix/jp3d-sprintf-overflow

Conversation

@kbabioch
Copy link
Copy Markdown
Contributor

@kbabioch kbabioch commented Mar 3, 2018

This replaces the unsafe sprintf() invocation by the safer snprintf()
one, with the correct buffer size to prevent buffer overflows.

This fixes #1085.

This replaces the unsafe sprintf() invocation by the safer snprintf()
one, with the correct buffer size to prevent buffer overflows.

This fixes uclouvain#1085.
@rouault rouault merged commit b02e0d9 into uclouvain:master Mar 4, 2018
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.

sprintf buffer overflow

2 participants