aboutsummaryrefslogtreecommitdiff
path: root/isofs/isofs.h
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-17 16:36:32 +0200
committerJustus Winter <justus@gnupg.org>2016-04-17 17:08:26 +0200
commit21ee0e79e90c3cf63613bc1a00a609cfaf1777b2 (patch)
tree2bd6b7a1bbbd475f0a5a7065fe7b99ad6fd94281 /isofs/isofs.h
parent54ab56a23c472729ba3834f90b01c4406ed358b8 (diff)
downloadhurd-21ee0e79e90c3cf63613bc1a00a609cfaf1777b2.tar.gz
hurd-21ee0e79e90c3cf63613bc1a00a609cfaf1777b2.tar.bz2
hurd-21ee0e79e90c3cf63613bc1a00a609cfaf1777b2.zip
isofs: make superblock detection more robust
* isofs/isofs.h (disk_image_len): New variable. * isofs/main.c (read_sblock): Avoid out of bounds access. * isofs/pager.c (disk_image_len): New variable. (create_disk_pager): Initialize 'disk_image_len'.
Diffstat (limited to 'isofs/isofs.h')
-rw-r--r--isofs/isofs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/isofs/isofs.h b/isofs/isofs.h
index 3f6690be..2ba013c2 100644
--- a/isofs/isofs.h
+++ b/isofs/isofs.h
@@ -75,6 +75,7 @@ char *mounted_on;
/* Mapped image of disk */
void *disk_image;
+size_t disk_image_len;
/* Processed sblock info */