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

Re: [tor-bugs] #31567 [Applications/Tor Browser]: NS_tsnprintf() does not handle %s correctly on Windows



#31567: NS_tsnprintf() does not handle %s correctly on Windows
-------------------------------------------------+-------------------------
 Reporter:  mcs                                  |          Owner:  gk
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  Very High                            |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Critical                             |     Resolution:
 Keywords:  ff68-esr, tbb-9.0-must-alpha,        |  Actual Points:
  TorBrowserTeam201908                           |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by pospeselr):

 copied from the mozilla bug:

 So I'm tentatively going to claim this is a bug in mingw's implementation
 of _vsnwprintf in ucrt__vsnwprintf.c. I wrote a quick test program and
 built with msvc 19.21 and verified in windbg that a value of '5' (which
 corresponds to UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION |
 UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS ) while mingw's implementation only
 passes in '1' ( UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION ).
 Swapping the 5 to a 1 in the debugger gives us the same broken behavior.

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