diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-15 11:26:44 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-15 11:26:44 +0000 |
commit | afd9291ef3d0279b49de38fceac5f11b8ba54360 (patch) | |
tree | fdbe97dce011dd892096397f57779a5d8c3ef761 /mdk-stage1 | |
parent | f09c8bbb0b555c60e681ed4f9bbab7773c61c7cf (diff) | |
download | drakx-backup-do-not-use-afd9291ef3d0279b49de38fceac5f11b8ba54360.tar drakx-backup-do-not-use-afd9291ef3d0279b49de38fceac5f11b8ba54360.tar.gz drakx-backup-do-not-use-afd9291ef3d0279b49de38fceac5f11b8ba54360.tar.bz2 drakx-backup-do-not-use-afd9291ef3d0279b49de38fceac5f11b8ba54360.tar.xz drakx-backup-do-not-use-afd9291ef3d0279b49de38fceac5f11b8ba54360.zip |
bzero string buffer before sscanf call, security for dietlibc implementation
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c index d6aa1596d..23f865380 100644 --- a/mdk-stage1/disk.c +++ b/mdk-stage1/disk.c @@ -81,6 +81,7 @@ static enum return_type try_with_device(char *dev_name) } while (fgets(buf, sizeof(buf), f)) { + bzero(name, sizeof(name)); sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, name); if ((strstr(name, dev_name) == name) && (blocks > 1) && (name[strlen(dev_name)] != '\0')) { parts[i] = strdup(name); |