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

Submitted by:  Harrold <harrold68>
Submitted on:  Fri 21 Feb 2020 08:55:44 AM UTC  
Category:  apps Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Simon Goldschmidt <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>
Project AdministratorIn charge of this item.
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>


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




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