bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61644] pic/object.cpp: warning about "alloc-size-larger-than="


From: Bjarni Ingi Gislason
Subject: [bug #61644] pic/object.cpp: warning about "alloc-size-larger-than="
Date: Wed, 8 Dec 2021 14:32:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?61644>

                 Summary: pic/object.cpp: warning about
"alloc-size-larger-than="
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Wed 08 Dec 2021 07:32:25 PM UTC
                Category: Preprocessor pic
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Subject: pic/object.cpp: warning about "alloc-size-larger-than="

Directory: src/preproc

Compiler: gcc (Debian 11.2.0-12) 11.2.0
  with -fsanitize=undefined (among others)

  CXXLD    pic
In member function 'add_text',
    inlined from 'make_object' at ../src/preproc/pic/object.cpp:1920:20,
    inlined from 'yyparse' at ../src/preproc/pic/pic.ypp:574:55:
../src/preproc/pic/object.cpp:642:30: warning: argument 1 value
'18446744073709551615' exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
  642 |     text = new text_piece[len];
      |                              ^
../src/preproc/pic/object.cpp: In function 'yyparse':
../src/preproc/pic/object.cpp:642:30: note: in a call to built-in
allocation function 'operator new []'





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61644>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]