patchWeeChat - Patches: patch #7458, Fix array-sizes in...

 
 

patch #7458: Fix array-sizes in gui-curses-chat.c

Submitter:  None
Submitted:  Fri 04 Feb 2011 08:04:16 PM UTC
 
Category:  display Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  flashcode Originator Email:  -email is unavailable-
Open/Closed:  Closed IRC nick:  aw
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Fri 04 Feb 2011 08:04:16 PM UTC, original submission:  

This fixes

[ 80%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-chat.o
/home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c: In function 'gui_chat_string_next_char':
/home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:207:43: warning: array subscript is above array bounds
/home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:249:43: warning: array subscript is above array bounds
/home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:295:43: warning: array subscript is above array bounds
/home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:334:47: warning: array subscript is above array bounds
In file included from /usr/include/string.h:642:0,
                 from /home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:29:
In function 'memcpy',
    inlined from 'gui_chat_string_next_char' at /home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:206:44:
/usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer
In function 'memcpy',
    inlined from 'gui_chat_string_next_char' at /home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:248:44:
/usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer
In function 'memcpy',
    inlined from 'gui_chat_string_next_char' at /home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:294:44:
/usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer
In function 'memcpy',
    inlined from 'gui_chat_string_next_char' at /home/aw/scm/3rdparty/weechat/src/gui/curses/gui-curses-chat.c:333:48:
/usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer

which leads to glibc detecting a buffer-overflow and aborting (in best case).

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #22605:  0001-Fix-array-sizes-in-gui-curses-chat.c.patch added by None (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by None (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-04 flashcode StatusNone Done
        Assigned toNone flashcode
        Open/ClosedOpen Closed
    2011-02-04 None Attached File- Added 0001-Fix-array-sizes-in-gui-curses-chat.c.patch, #22605

    Back to the top


    Powered by Savane 3.9