[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #24755 [Applications/Tor Browser]: Shell scripts refactoring and bash privacy leak. Heredoc should not be used in start-tor-browser script.
#24755: Shell scripts refactoring and bash privacy leak. Heredoc should not be used
in start-tor-browser script.
--------------------------------------+--------------------------
Reporter: asan | Owner: tbb-team
Type: defect | Status: assigned
Priority: Low | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Minor | Resolution:
Keywords: tbb-disk-leak | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------------------+--------------------------
Comment (by asan):
> It seems that setting `TMPDIR` to a `tmp` directory inside the Tor
Browser directory at the beginning of `start-tor-browser` would solve the
issue with `<<`
Your solution looks working. However, if you want to set temporary
directories for the script correctly, it would be logical to set them in a
way which resolves
[[https://trac.torproject.org/projects/tor/ticket/7449|#7449]] too.
> There are also other things in this script, which are often considered
to be a bad practice. In particular
I would add also another point: `echo`
[[https://unix.stackexchange.com/questions/65803/why-is-printf-better-
than-echo|must]] be replaced by `printf` everywhere.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24755#comment:4>
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