Skip to content

Commit 94aa06a

Browse files
Merge commit from fork
Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>
1 parent 4f5a582 commit 94aa06a

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
@@ -1807,6 +1807,9 @@ static bool_t xdr_slice(RemoteXdr* xdrs, lstring* slice, /*USHORT sdl_length,*/
18071807
if (!xdr_long(xdrs, reinterpret_cast<SLONG*>(&slice->lstr_length)))
18081808
return FALSE;
18091809

1810+
if ((xdrs->x_op != XDR_FREE) && !sdl)
1811+
return FALSE;
1812+
18101813
// Handle operation specific stuff, particularly memory allocation/deallocation
18111814

18121815
switch (xdrs->x_op)

0 commit comments

Comments
 (0)