mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fixed data corruption in the multipart parser.
This commit is contained in:
parent
222f1f6f78
commit
28d44486e3
@ -329,8 +329,8 @@ static int multipart_process_part_data(modsec_rec *msr, char **error_msg) {
|
||||
{
|
||||
/* Two bytes. */
|
||||
bytes_reserved = 2;
|
||||
localreserve[0] = *(p - 1);
|
||||
localreserve[1] = *(p - 2);
|
||||
localreserve[0] = *(p - 2);
|
||||
localreserve[1] = *(p - 1);
|
||||
msr->mpd->bufleft += 2;
|
||||
*(p - 2) = 0;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user