[tbb-bugs] #22415 [Applications/Tor Browser]: Format error in our pipeline patch

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 27 08:48:47 UTC 2017


#22415: Format error in our pipeline patch
--------------------------------------+------------------------------
 Reporter:  arthuredelstein           |          Owner:  tbb-team
     Type:  defect                    |         Status:  needs_review
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  TorBrowserTeam201705R     |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+------------------------------
Description changed by arthuredelstein:

Old description:

> I was building tor-browser.git with -Werror=format and it revealed a
> format error in our #5282 patch. The line is
> {{{
>       fprintf(stderr, "WTF-combine: Sent %lld/%lld bytes of %lld combined
> pipelined requests for host %s\n",
>               alreadyPending+totalSent, totalAvailable, reqsSent,
> ci->Origin());
> }}}
> But the first three arguments after the format string are unsigned long
> integers, not long long integers.

New description:

 I was building tor-browser.git with --enabled-debug and -Werror=format and
 it revealed a format error in our #5282 patch. The line is
 {{{
       fprintf(stderr, "WTF-combine: Sent %lld/%lld bytes of %lld combined
 pipelined requests for host %s\n",
               alreadyPending+totalSent, totalAvailable, reqsSent,
 ci->Origin());
 }}}
 But the first three arguments after the format string are unsigned long
 integers, not long long integers.

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22415#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tbb-bugs mailing list