bugGNU Octave - Bugs: bug #61489, [octave forge] (octproj) Use...


bug #61489: [octave forge] (octproj) Use string literal in call to error() and warning() functions

Submitted by:  Rafael Laboissière <rlaboiss>
Submitted on:  Mon 15 Nov 2021 06:22:02 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  other Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 15 Nov 2021 06:22:02 PM UTC, original submission:  

Compilation of the octclip package with option -Werror=format-security (a requirement for building Debian packages) fails with error messages like this:

_op_fwd.cc: In function ‘octave_value_list F_op_fwd(const octave_value_list&, int)’:
_op_fwd.cc:77:15: error: format not a string literal and no format arguments [-Werror=format-security]
   77 |         error(errorText);
      |               ^~~~~~~~~
_op_fwd.cc:123:25: error: format not a string literal and no format arguments [-Werror=format-security]
  123 |                 warning(errorText);
      |                         ^~~~~~~~~
_op_fwd.cc:139:23: error: format not a string literal and no format arguments [-Werror=format-security]
  139 |                 error(errorText);
      |                       ^~~~~~~~~
cc1plus: some warnings being treated as errors
make[1]: *** [Makefile:25: compile] Error 1

The patch attached to this bug report fixes the issue.

Rafael Laboissière <rlaboiss>


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

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rlaboiss (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 project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-15 rlaboiss Attached File- => Added format-security-error.patch, #52284

    Back to the top

    Powered by Savane 3.7