Share

PerlPlusPlugin

Tracker: Bugs

5 secure_parms broken in WIn32 version - ID: 585979
Last Update: Tracker Item Submitted ( nobody )

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


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.