Memory access bug in string.c
Posted: 2011-03-25T04:22:09-07:00
Hi!
I found a invalid memory access bug detected in the actual SVN-Version of magick/string.c
The memcpy() commands exceeds the length of the source string in CloneString(), AcquireString() and ConstantString().
This results into an access violation running a static linked debug version in VS2010
Anyway, Thanks for your Great Library!
Bernhard
I found a invalid memory access bug detected in the actual SVN-Version of magick/string.c
The memcpy() commands exceeds the length of the source string in CloneString(), AcquireString() and ConstantString().
Code: Select all
<(void) memcpy(destination,source,length*sizeof(*destination));
>(void) memcpy(destination,source,length*sizeof(char));
Anyway, Thanks for your Great Library!
Bernhard