[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #13284 [Tor]: Stop spurious clang shallow analysis null pointer errors



#13284: Stop spurious clang shallow analysis null pointer errors
--------------------------------------+----------------------------------
 Reporter:  teor                      |          Owner:
     Type:  defect                    |         Status:  new
 Priority:  normal                    |      Milestone:
Component:  Tor                       |        Version:  Tor: unspecified
 Keywords:  tor-router clang-analyze  |  Actual Points:
Parent ID:                            |         Points:
--------------------------------------+----------------------------------
 When clang does shallow analysis (the default when building under Xcode),
 it finds 4 null pointer errors.

 We resolve this by using tor_assert() to prove that the pointers aren't
 null.

 I'll attach a patch to this ticket as soon as I've created the changes
 entry.

 version: 2.6.0-alpha
 git:
 4fcc8d4e55256b96de400ad8cb04be451471853c (with #13280)
 5190ec0bc4c22d7bab756e21db6e357ba07379c4 (origin)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13284>
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