Menu

#246 Patch for ar in binutils-2.15.91-20040904-1

closed-out-of-date
nobody
2010-07-16
2005-07-29
ericgm
No

The ar command crashes when used with MRI scripts and
the ADDLIB command. This crash is specific to Windows,
as it tries to rename a file into another which is left
opened.

The fix provided is not Win32-specific, as it cleanly
closes the opened file before being removed or renamed
to (UNIX implicitely closes it on exit).

There is a ar.mri script attached showing the problem
under a standard MinGW installation. Notice that you
can run this test on Linux as well by changing the
ADDLIB library in the MRI script. The bug shows up by
typing 'ar -M <ar.mri'.

Thank you !

Discussion

  • ericgm

    ericgm - 2005-07-29

    ar MRI script

     
  • ericgm

    ericgm - 2005-07-29

    Logged In: YES
    user_id=1320840

    Oops, here is the patch file...

     
  • ericgm

    ericgm - 2005-07-29

    Logged In: YES
    user_id=1320840

    Oops, here is the patch file...

     
  • ericgm

    ericgm - 2005-07-29

    ar Patch file

     
  • ericgm

    ericgm - 2005-08-25
    • summary: Patch for binutils-2.15.91-20040904-1 --> Patch for ar in binutils-2.15.91-20040904-1
     
  • Danny Smith

    Danny Smith - 2005-08-28

    Logged In: YES
    user_id=11494

    Please submit patch, with ChangeLog entry to:
    binutils@sourceware.org

    for review.

    Danny

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-07-16
    • status: open --> closed-out-of-date