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

 
 

bug #52089: exit() in librec

Submitted by:  Luigi Baldoni <aloysius>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5