commit | dceaa0894bd73c19d0d7130f571ac869b52f339d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jul 25 14:38:45 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Sep 09 21:09:28 2007 +0200 |
tree | 265cb2ba8176498ff931bf4fc7916e8f9ddab90f | |
parent | ca769dc631af414778b09a14803248b99ac83b5b [diff] |
[MEDIUM] ensure we never overflow in chunk_printf() The result of the vsnprintf() called in chunk_printf() must be checked, and should be added only if lower than the requested size. We simply return zero if we cannot write the chunk.