Permalink
Please sign in to comment.
Browse files
xbm: avoid stack overflow (read) with large names #211
We use the name passed in to printf into a local stack buffer which is limited to 4000 bytes. So given a large enough value, lots of stack data is leaked. Rewrite the code to do simple memory copies with most of the strings to avoid that issue, and only use stack buffer for small numbers of constant size. This closes #211.
- Loading branch information...
34
src/gd_xbm.c
0 comments on commit
4dc1a2d