Red Hat Bugzilla – Bug 142100
array index out of range
Last modified: 2007-11-30 17:10:56 EST
Description of problem:
I just tried to compile package parted-1.6.15-5 from
Redhat Fedora Core 3.
The compiler said
disk_dvh.c(466): warning #175: subscript out of range
The source code is
vd->vd_name[VDNAMESIZE] = 0;
I agree with the compiler. This code would benefit from re-work to ensure
that non existant data is not accessed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I fixed it (I hope ;) Thanks!