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

[tor-bugs] #28939 [Core Tor]: Fix buffer overflow in src/test/test_voting_flags.c



#28939: Fix buffer overflow in src/test/test_voting_flags.c
--------------------+--------------------------
 Reporter:  kjak    |          Owner:  (none)
     Type:  defect  |         Status:  new
 Priority:  Medium  |      Component:  Core Tor
  Version:          |       Severity:  Normal
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
 Reviewer:          |        Sponsor:
--------------------+--------------------------
 In `setup_cfg()` in src/test/test_voting_flags.c a memset is used to write
 `DIGEST256_LEN` (32) bytes into `signed_descriptor_digest` of length
 `DIGEST_LEN` (20).

 I see 12 bytes of the previously-filled `identity_digest` being
 overwritten.

 PR to follow.

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