projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a8f95
)
saa_rstruct: fix overrun check
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 8 Oct 2007 19:41:00 +0000
(12:41 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 8 Oct 2007 19:41:00 +0000
(12:41 -0700)
The direction of the overrun test in saa_rstruct was backwards.
nasmlib.c
patch
|
blob
|
history
diff --git
a/nasmlib.c
b/nasmlib.c
index
c98834c
..
0a0bb95
100644
(file)
--- a/
nasmlib.c
+++ b/
nasmlib.c
@@
-610,7
+610,7
@@
void *saa_rstruct(struct SAA *s)
{
void *p;
- if (s->rptr + s->elem_len
<
s->datalen)
+ if (s->rptr + s->elem_len
>
s->datalen)
return NULL;
if (s->rpos % s->elem_len)