lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #57526] Fix the dns entries pcb_idx range


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #57526] Fix the dns entries pcb_idx range
Date: Thu, 9 Jan 2020 15:09:02 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

Update of bug #57526 (project lwip):

                  Status:                    None => Invalid                
             Assigned to:                    None => goldsimon              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

I take it this is from reading the code only. Let me explain:
- dns_send() is called for DNS_STATE_NEW and DNS_STATE_ASKING only
- pcb_idx is set to DNS_MAX_SOURCE_PORTS only when the table entry is set to
DNS_STATE_UNUSED

Being like that, this cannot happen. I'll add an assert anyway, but no, it
currently cannot cause table reading out of range.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?57526>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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