This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Patch] Unitialised variable in BFD VMS code


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]