[Patch] Unitialised variable in BFD VMS code
Nick Clifton
nickc@redhat.com
Mon Dec 18 11:03:00 GMT 2000
Hi Guys,
Whilst working on another problem, I cam across a seg fault that was
caused by an unitialised variable 'test_len' in the function
_bfd_vms_get_record. I have checked in the patch below to fix this.
Cheers
Nick
2000-12-18 Nick Clifton <nickc@redhat.com>
* vms-misc.c (_bfd_vms_get_record): Add default case to
file_format switch.
Index: vms-misc.c
===================================================================
RCS file: /cvs/src//src/bfd/vms-misc.c,v
retrieving revision 1.5
diff -p -w -r1.5 vms-misc.c
*** vms-misc.c 2000/06/14 18:10:10 1.5
--- vms-misc.c 2000/12/18 19:00:30
*************** _bfd_vms_get_record (abfd)
*** 324,329 ****
--- 324,330 ----
test_start = 0;
break;
+ default:
case FF_VAX:
test_len = 0;
test_start = 0;
More information about the Binutils
mailing list