bugGNU recutils - Bugs: bug #52089, exit() in librec

 
 

bug #52089: exit() in librec

Submitter:  Luigi Baldoni <aloysius>
Submitted:  Fri 22 Sep 2017 02:48:53 PM UTC
   
 
Category:  librec Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Fri 22 Sep 2017 02:48:53 PM UTC, original submission:  

rpmlint complains about this:


librec1.x86_64: W: shared-lib-calls-exit /usr/lib64/librec.so.1.0.0 _exit@GLIBC_2.2.5
librec1.x86_64: W: shared-lib-calls-exit /usr/lib64/librec.so.1.0.0 exit@GLIBC_2.2.5
This library package calls exit() or _exit(), probably in a non-fork()
context. Doing so from a library is strongly discouraged - when a library
function calls exit(), it prevents the calling program from handling the
error, reporting it to the user, closing files properly, and cleaning up any
state that the program has. It is preferred for the library to return an
actual error code and let the calling program decide how to handle the
situation.


It could be a false positive, but it seemed proper to report it.

Luigi Baldoni <aloysius>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by aloysius (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code