diff options
author | Adam Domurad <[email protected]> | 2012-05-22 14:19:50 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2012-05-22 14:19:50 -0400 |
commit | 83f9d2e9dd57aac518b2284c9625547cd4f8fd91 (patch) | |
tree | 95b4dc76a41f524b0a8c1b9bb6705a1d1f130f71 /ChangeLog | |
parent | a2cc992a123651041d9890200d8040e188fc9c96 (diff) |
Changed usage of sprintf to snprintf. Made some small malloc'd buffers on the stack.
These changes are unlikely to change functionality, for if the buffer is too small to write to, something has already gone wrong. However, they are good as an additional safety guarantee, preventing memory from corruption in the case that something goes wrong.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,15 @@ +2012-05-22 Adam Domurad <[email protected]> + + Changed allocation of small, fixed-size buffers to stack-based + allocations. Changed occurences of sprintf to the safer function + snprintf, added buffer information. While unlikely to change + functionality, snprintf adds an extra check to prevent buffer + overflows. + * plugin/icedteanp/IcedTeaNPPlugin.cc: Allocation of small buffers + using malloc changed to stack allocation & changed sprintf calls to + buffer-size aware snprintf calls. + * plugin/icedteanp/IcedTeaPluginUtils.cc: Same as above. + 2012-05-22 Jiri Vanek <[email protected]> * tests/jnlp_tests/signed/ReadPropertiesSigned/testcases/ReadPropertiesSignedTest.java: |