Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-bugs: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: bugzilla-daemon@xxxxxxxxxxxxx
Date: Fri, 4 Jan 2008 07:06:57 +0000 (GMT)

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2162





------- Comment #2 from jaap.keuter@xxxxxxxxx  2008-01-04 07:06 GMT -------
In theory there's no sequence point in the expression "(i<len) && src[i]", so
that doesn't address the problem. However, most(?) modern day compilers are
able to short circuit such expression, hence fix the problem anyway.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  • References:
    • [Wireshark-bugs] [Bug 2162] New: for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
      • From: bugzilla-daemon
  • Prev by Date: [Wireshark-bugs] [Bug 2017] VoIP trace crashes Wireshark when specific RTP Player buttons are clicked
  • Next by Date: [Wireshark-bugs] [Bug 2163] New: build of wireshark-0.99.7 stopped under HP-UX 11.11
  • Previous by thread: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
  • Next by thread: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation