Skip to content

Commit 0b4a287

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

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
@@ -368,6 +368,9 @@ static bool_t xdr_slice(XDR* xdrs, lstring* slice, /*USHORT sdl_length,*/ const
368368
if (!xdr_long(xdrs, reinterpret_cast<SLONG*>(&slice->lstr_length)))
369369
return FALSE;
370370

371+
if ((xdrs->x_op != XDR_FREE) && !sdl)
372+
return FALSE;
373+
371374
// Handle operation specific stuff, particularly memory allocation/deallocation
372375

373376
switch (xdrs->x_op)

src/remote/protocol.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,9 @@ static bool_t xdr_slice(XDR* xdrs, lstring* slice, /*USHORT sdl_length,*/ const
14211421
if (!xdr_long(xdrs, reinterpret_cast<SLONG*>(&slice->lstr_length)))
14221422
return FALSE;
14231423

1424+
if ((xdrs->x_op != XDR_FREE) && !sdl)
1425+
return FALSE;
1426+
14241427
// Handle operation specific stuff, particularly memory allocation/deallocation
14251428

14261429
switch (xdrs->x_op)

0 commit comments

Comments
 (0)