summaryrefslogtreecommitdiffstats
path: root/isomd5sum/libcheckisomd5.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-08-10 15:21:31 +0000
committerJeremy Katz <katzj@redhat.com>2005-08-10 15:21:31 +0000
commit50e9df6bfbc6debf490865b5df98312c63b4225b (patch)
tree05c532bb42eaa9a736533236b1b106adef119927 /isomd5sum/libcheckisomd5.c
parent8cb576b129e701b4c38dbb9cc8a04343ab8cb017 (diff)
downloadanaconda-50e9df6bfbc6debf490865b5df98312c63b4225b.tar.gz
anaconda-50e9df6bfbc6debf490865b5df98312c63b4225b.tar.xz
anaconda-50e9df6bfbc6debf490865b5df98312c63b4225b.zip
2005-08-10 Jeremy Katz <katzj@redhat.com>
* isomd5sum/libcheckisomd5.c: Fix buffer overrun (from Dustin Kirkland <dustin.kirkland@us.ibm.com>
Diffstat (limited to 'isomd5sum/libcheckisomd5.c')
-rw-r--r--isomd5sum/libcheckisomd5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isomd5sum/libcheckisomd5.c b/isomd5sum/libcheckisomd5.c
index b7ab1e9e2..618cdabdd 100644
--- a/isomd5sum/libcheckisomd5.c
+++ b/isomd5sum/libcheckisomd5.c
@@ -70,7 +70,7 @@ static int parsepvd(int isofd, char *mediasum, int *skipsectors, long long *isos
if (!strncmp(buf2 + loc, "ISO MD5SUM = ", 13)) {
/* make sure we dont walk off end */
- if ((loc + 32) > 511)
+ if ((loc + 32 + 13) > 511)
return -1;
memcpy(mediasum, buf2 + loc + 13, 32);