🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1243

undefined code

#1243
From: d binderman
Date: Wed, 19 Jan 2005 11:39
28 lines
2136 bytes
Hello there,

I just tried to compile package gdb-6.3 on a Redhat Linux box.

The compiler said

../../gdb-6.3/gdb/dwarf2-frame.c:1359: warning: operation on `buf' may be 
undefined

The source code is

          buf += size_of_encoded_value (*buf++);

I agree with the compiler - this code is certainly undefined.
Maybe

          buf += 1 + size_of_encoded_value (*buf);

was intended by the programmer ?

Regards

David Binderman

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger
Technical Details
Message-ID: <mailman.14545.1106363919.27204.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,aecad7167c1fd326,start
X-Google-Attributes: gidf5053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
From: "d binderman" <dcb314@hotmail.com>
Newsgroups: gnu.gdb.bug
Subject: undefined code
Date: Wed, 19 Jan 2005 11:39:07 +0000
Lines: 31
Approved: bug-gdb@gnu.org
Message-ID: <mailman.14545.1106363919.27204.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-Trace: news.Stanford.EDU 1106363170 20324 199.232.76.165 (22 Jan 2005 03:06:10 GMT)
X-Complaints-To: news@news.stanford.edu
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
X-Originating-IP: [81.156.7.114]
X-Originating-Email: [dcb314@hotmail.com]
X-Sender: dcb314@hotmail.com
X-OriginalArrivalTime: 19 Jan 2005 11:40:03.0137 (UTC)
 FILETIME=[9D641310:01C4FE1B]
X-Mailman-Approved-At: Fri, 21 Jan 2005 22:18:38 -0500
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>