commit | b45b5c9f227473050ef785d11e518e947c8754fb | [log] [tgz] |
---|---|---|
author | Keith Preston <keithpre@gmail.com> | Thu Feb 11 15:12:53 2010 -0600 |
committer | preston <keithpre@gmail.com> | Thu Feb 18 15:33:28 2010 -0600 |
tree | e3e38a26867d940a092bca2e65626906ff814b77 | |
parent | 91a54c11cbfbe3adc1df2f523c75ad76affb0ae9 [diff] |
Fix Heap Corruption from too long of a TAG snprintf has a weird return value. It returns what would have been written given a large enough buffer. In the case that the prefix is longer then our buffer(128), it messes up the calculations below possibly causing heap corruption. To avoid this we double check and set the length at the maximum (size minus null byte