In win32/NpPerlPlus.cpp, subroutine NPP_Write, lines
995-996:
strncpy(This->secure_parms, (char *)buffer, CGISIZE);
This->secure_parms[CGISIZE-1] = '\0';
The code copies a single character into This->secure_parms
and immediately overwrites it with a null character.
Change
the second line to:
This->secure_parms[CGISIZE] = '\0';
This will null-terminate the string properly instead of
clobbering it.
Thanks.
Nobody/Anonymous ( nobody ) - 2002-07-24 15:23
5
Open
None
Nobody/Anonymous
None
None
Public
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use