patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9892, SNMP fix allowing negative offset...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9892: SNMP fix allowing negative offset for snmp_pbuf_stream_seek()

Submitter:  Harrold <harrold68>
Submitted:  Fri 21 Feb 2020 08:55:44 AM UTC
   
 
Category:  apps Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Fri 21 Feb 2020 04:29:41 PM UTC, comment #1: 

Applied, thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Fri 21 Feb 2020 08:55:44 AM UTC, original submission:  

Function snmp_pbuf_stream_seek() does not allow parsing a negative offset, but as far as I see, this is valid as long as (pbuf_stream->offset + offset) is not less than 0.

Function snmp_pbuf_stream_seek() will be called indirectly by snmp_pbuf_stream_seek_abs(), which may pass a negative relative offset.

I don't think this is currently causing any issue, but I started using this function also for an SNMP manager implementation and found out it fails.

Harrold <harrold68>

 

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

Attached Files
file #48458:  fix_snmp_pbuf_stream_seek.patch added by harrold68 (950B - 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 goldsimon (Posted a comment)
  • -email is unavailable- added by harrold68 (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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-21 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2020-02-21 harrold68 Attached File- Added fix_snmp_pbuf_stream_seek.patch, #48458

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code