Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas
Modified Files:
evas_object_textblock.c
Log Message:
Add room for '\0' in textblock calculations.
In evas_object_textblock, the length forgot the '\0', this create a
buffer overrun.
Author: Cedric BAIL
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_textblock.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -3 -r1.145 -r1.146
--- evas_object_textblock.c 8 Feb 2008 22:35:19 -0000 1.145
+++ evas_object_textblock.c 15 Feb 2008 14:45:31 -0000 1.146
@@ -259,7 +259,7 @@
return strdup("");
}
l2 = strlen(s2);
- tlen = *len + l2;
+ tlen = *len + l2 + 1;
if (tlen > *alloc)
{
char *ts;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs