projects
/
platform
/
upstream
/
nasm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix infinite loop in function saa_fpwrite
[platform/upstream/nasm.git]
/
nasmlib.c
diff --git
a/nasmlib.c
b/nasmlib.c
index
7404483
..
9c24db7
100644
(file)
--- a/
nasmlib.c
+++ b/
nasmlib.c
@@
-727,6
+727,7
@@
void saa_fpwrite(struct SAA *s, FILE * fp)
size_t len;
saa_rewind(s);
+ len = s->datalen;
while ((data = saa_rbytes(s, &len)) != NULL)
fwrite(data, 1, len, fp);
}