Philipp Matthias Hahn 848d66e69d Fix broken strncat(..., strlen())
commit 0edaf3361db01425cae0daee7dc3f6039f381a17 replaced several
malloc()+strcat() sequences with strncat() using strlen() on the
*source* string.
This is still vulnerable to overwrite the *target* buffer.

While reviewing this commit change the code to directly use snprintf()
for concatenating strings and check the length of the target buffer.

Signed-off-by: Marcelo Roberto Jimenez <mroberto@users.sourceforge.net>
2014-09-22 11:19:25 -03:00
..
2012-03-30 21:57:51 +02:00
2010-06-26 11:09:49 +00:00
2014-09-22 11:19:25 -03:00
2008-02-03 01:36:23 +00:00
2012-03-15 14:13:27 +01:00