Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
c2d6c7c2
Commit
c2d6c7c2
authored
Mar 02, 2022
by
Rob Swindell
💬
Browse files
Detect/reject negative offset argument values to smb_freemsgdat()
parent
b47b97c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/smblib/smballoc.c
src/smblib/smballoc.c
+3
-0
No files found.
src/smblib/smballoc.c
View file @
c2d6c7c2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment