[tor-bugs] #17931 [Tor Browser]: Tor Browser crashes in LogMessageToConsole()
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Jan 5 15:27:14 UTC 2016
#17931: Tor Browser crashes in LogMessageToConsole()
-------------------------------------------------+-------------------------
Reporter: pege | Owner: tbb-
Type: defect | team
Priority: Immediate | Status:
Component: Tor Browser | needs_review
Severity: Blocker | Milestone:
Keywords: tbb-hardened, tbb-crash, | Version:
TorBrowserTeam201601R | Resolution:
Parent ID: | Actual Points:
Sponsor: | Points:
-------------------------------------------------+-------------------------
Comment (by mcs):
Replying to [comment:14 arthuredelstein]:
> Here are two patches to give `nsContentUtils::LogMessageToConsole` a
single non-format argument, as Mike suggested:
>
> https://github.com/arthuredelstein/tor-browser/commits/17931+2
>
> The first patch removes usage of `LogMessageToConsole` in
`GonkGPSGeolocationProvider.cpp`, in favor of a more standard logging
method found in other Gonk files.
>
> The second patch changes `nsContentUtils::LogMessageToConsole` to a
single argument. That makes the existing usage in `nsCanvasUtils.cpp` and
`loggingCallbacks.h` safe.
>
> I confirmed that tor-browser.git builds and works with these patches
applied. I have also submitted them to Mozilla's try server. The results
will be here:
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=71edd495d073
r=mcs, r=brade
We did not compile or run the code, but it looks good. One question: are
the (int) casts in front of the nsresult args needed inside
GonkGPSGeolocationProvider.cpp? I assume they are; I am just surprised.
> ... I do agree with Mike that it will be safer if Mozilla adopts a
single-argument signature for `LogMessageToConsole`.
Have you filed a bugzilla bug yet? I would like to be cc'd on it.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17931#comment:17>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list