This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[Patch] Unitialised variable in BFD VMS code
- To: binutils at sources dot redhat dot com
- Subject: [Patch] Unitialised variable in BFD VMS code
- From: Nick Clifton <nickc at redhat dot com>
- Date: Mon, 18 Dec 2000 11:03:10 -0800
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;