git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d0543
)
r9935: Make it easier to find overruns.
author
Jeremy Allison
<jra@samba.org>
Fri, 2 Sep 2005 00:24:28 +0000
(
00:24
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:03:28 +0000
(11:03 -0500)
Jeremy.
source/rpc_parse/parse_prs.c
patch
|
blob
|
history
diff --git
a/source/rpc_parse/parse_prs.c
b/source/rpc_parse/parse_prs.c
index 493536eb2a2e70b6e1fecc3e4c1ec0f5504382b9..709a5d39af6c3f78178c45baebd0a5727adfe662 100644
(file)
--- a/
source/rpc_parse/parse_prs.c
+++ b/
source/rpc_parse/parse_prs.c
@@
-529,8
+529,10
@@
char *prs_mem_get(prs_struct *ps, uint32 extra_size)
* If reading, ensure that we can read the requested size item.
*/
if (ps->data_offset + extra_size > ps->buffer_size) {
- DEBUG(0,("prs_mem_get: reading data of size %u would overrun buffer.\n",
- (unsigned int)extra_size ));
+ DEBUG(0,("prs_mem_get: reading data of size %u would overrun "
+ "buffer by %u bytes.\n",
+ (unsigned int)extra_size,
+ (unsigned int)(ps->data_offset + extra_size - ps->buffer_size) ));
return NULL;
}
} else {