Skip to content

Commit 8a44b0b

Browse files
MochalovAlexeyAlexeyMochalov
authored andcommitted
Merge commit from fork
Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>
1 parent fa0c0b2 commit 8a44b0b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/burp/canonical.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ static bool_t xdr_slice(BurpXdr* xdrs, lstring* slice, /*USHORT sdl_length,*/ co
421421
if (!xdr_long(xdrs, reinterpret_cast<SLONG*>(&slice->lstr_length)))
422422
return FALSE;
423423

424+
if ((xdrs->x_op != XDR_FREE) && !sdl)
425+
return FALSE;
426+
424427
// Handle operation specific stuff, particularly memory allocation/deallocation
425428

426429
switch (xdrs->x_op)

src/remote/protocol.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,9 @@ static bool_t xdr_slice(RemoteXdr* xdrs, lstring* slice, /*USHORT sdl_length,*/
17591759
if (!xdr_long(xdrs, reinterpret_cast<SLONG*>(&slice->lstr_length)))
17601760
return FALSE;
17611761

1762+
if ((xdrs->x_op != XDR_FREE) && !sdl)
1763+
return FALSE;
1764+
17621765
// Handle operation specific stuff, particularly memory allocation/deallocation
17631766

17641767
switch (xdrs->x_op)

0 commit comments

Comments
 (0)