weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [patch #7458] Fix array-sizes in gui-curses-chat.c


From: anonymous
Subject: [Weechat-dev] [patch #7458] Fix array-sizes in gui-curses-chat.c
Date: Fri, 04 Feb 2011 20:04:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11pre) Gecko/20110202 Firefox/4.0b11pre

URL:
  <http://savannah.nongnu.org/patch/?7458>

                 Summary: Fix array-sizes in gui-curses-chat.c
                 Project: WeeChat
            Submitted by: None
            Submitted on: Fri 04 Feb 2011 08:04:16 PM UTC
                Category: display
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                IRC nick: aw

    _______________________________________________________

Details:


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).




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 04 Feb 2011 08:04:16 PM UTC  Name:
0001-Fix-array-sizes-in-gui-curses-chat.c.patch  Size: 3kB   By: None

<http://savannah.nongnu.org/patch/download.php?file_id=22605>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7458>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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