bugGNU roff - Bugs: bug #61644, pic/object.cpp: warning about...

 
 

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

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Wed 08 Dec 2021 07:32:25 PM UTC
   
 
Category:  Preprocessor pic Severity:  3 - Normal
Item Group:  Build/Installation Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Dec 2021 07:32:25 PM UTC, original submission:  

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 []'

Bjarni Ingi Gislason <bjarniig>

 

(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 gbranden (Updated the item)
  • -email is unavailable- added by bjarniig (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-09 gbranden Open/ClosedClosed Open
    2023-05-09 gbranden Open/ClosedOpen Closed
    2022-01-11 gbranden Item GroupWarning/Suspicious behaviour Build/Installation

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code