secure_parms broken in WIn32 version
Status: Beta
Brought to you by:
fholtry
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.