Skip to content
Snippets Groups Projects
Commit 50a06997 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Detect/reject negative offset argument values to smb_freemsgdat()

parent 22f135be
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,9 @@ int smb_freemsgdat(smb_t* smb, off_t offset, ulong length, uint16_t refs)
off_t sda_offset;
off_t flen;
if(offset < 0)
return SMB_ERR_DAT_OFFSET;
if(smb->status.attr&SMB_HYPERALLOC) /* do nothing */
return(SMB_SUCCESS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment