Re: patch: prevent endless loop after truncating a 64bit int to 32bit

This is a discussion on Re: patch: prevent endless loop after truncating a 64bit int to 32bit within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, Mar 19, 2008 at 04:34:11PM +0100, Lars Ellenberg wrote: > in asn_realloc_rbuild_int, > testvalue must be ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-22-2008
Lars Ellenberg
 
Posts: n/a
Default Re: patch: prevent endless loop after truncating a 64bit int to 32bit

On Wed, Mar 19, 2008 at 04:34:11PM +0100, Lars Ellenberg wrote:
> in asn_realloc_rbuild_int,
> testvalue must be derived from the truncated value,
> not from the original input.
> otherwise there is a lot of possible input that can lead
> to "while (0 != -1) { realloc }"
>
> -- Lars Ellenberg

On Fri, Mar 21, 2008 at 01:38:49AM +0100, Thomas Anders wrote:
> Lars Ellenberg schrieb:
> > in asn_realloc_rbuild_int,
> > testvalue must be derived from the truncated value,
> > not from the original input.
> > otherwise there is a lot of possible input that can lead
> > to "while (0 != -1) { realloc }"

>
> Thanks for the patch! Please submit it to
> http://www.net-snmp.org/patches (with a note to the list) so it won't
> get lost.


done.
http://sourceforge.net/tracker/index...group_id=12694


--
: Lars Ellenberg Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0