Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2007-04-09 04:44:19 -0700 (Mon, 09 Apr 2007)
fixed a buffer overflow (realloc resized string without terminating 0)
--- gemrb/trunk/gemrb/plugins/AREImporter/AREImp.cpp 2007-04-09 08:44:11 UTC (rev 4583)
+++ gemrb/trunk/gemrb/plugins/AREImporter/AREImp.cpp 2007-04-09 11:44:19 UTC (rev 4584)
@@ -970,7 +970,8 @@
text = 0;
str->ReadDword(&color); //readonly == 1
- text = (char *) realloc( text, strlen(text) );
+ //+1 for the terminating zero!!!
+ text = (char *) realloc( text, strlen(text)+1 );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: