[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #14798 [Tor]: Avoid calling SMARTLIST_FOREACH on a NULL smartlist in tests
#14798: Avoid calling SMARTLIST_FOREACH on a NULL smartlist in tests
--------------------+------------------------------------
Reporter: teor | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.6.x-final
Component: Tor | Version: Tor: 0.2.6.2-alpha
Keywords: clang | Actual Points:
Parent ID: | Points:
--------------------+------------------------------------
Two of the test functions could possibly call SMARTLIST_FOREACH on a NULL
smartlist.
This branch fixes the issue:
'''Repository:''' âââhttps://github.com/teor2345/tor.git
'''Branch:''' avoid-NULL-smartlist-foreach
Check if each smartlist is NULL before calling SMARTLIST_FOREACH on it.
Bug discovered by the clang static analyzer.
Apple clang 600.0.56 (LLVM 3.5svn) on x86_64-apple-darwin14.1.0.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14798>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs