Bug 2277767 - format-security error in generated R code
Summary: format-security error in generated R code
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swig
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2277440 2277442
TreeView+ depends on / blocked
 
Reported: 2024-04-29 13:42 UTC by Iñaki Ucar
Modified: 2024-04-30 18:12 UTC (History)
3 users (show)

Fixed In Version: swig-4.2.1-4.fc41
Clone Of:
Environment:
Last Closed: 2024-04-29 21:03:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Iñaki Ucar 2024-04-29 13:42:47 UTC
Calls to Rf_error and Rf_warning generated by swig fail under -Werror=format-security. See:

https://bugzilla.redhat.com/show_bug.cgi?id=2277440
https://bugzilla.redhat.com/show_bug.cgi?id=2277442

Reproducible: Always

Comment 1 Jitka Plesnikova 2024-04-29 14:21:25 UTC
It was fixed in upstream by commit

commit 3d5157514889c668bc14c245246c388eb23615ea (HEAD -> master, origin/master, origin/HEAD)
Author: pekkarr <pekkarr>
Date:   Mon Apr 29 10:00:38 2024 +0300

    Fix gcc's -Wformat-security warning in R Raise function (#2896)
    
    The `Rf_error` function takes a format string as its first argument.

I'll update swig in Fedora.

Comment 2 Iñaki Ucar 2024-04-29 14:23:50 UTC
Great, thanks!

Comment 3 Fedora Update System 2024-04-29 21:00:24 UTC
FEDORA-2024-d9c7c18352 (swig-4.2.1-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d9c7c18352

Comment 4 Fedora Update System 2024-04-29 21:03:24 UTC
FEDORA-2024-d9c7c18352 (swig-4.2.1-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Iñaki Ucar 2024-04-30 18:12:37 UTC
Unfortunately, the problem persists. See this build log for libsbml: https://koji.fedoraproject.org/koji/taskinfo?taskID=117068042


Note You need to log in before you can comment on or make changes to this bug.