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
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code