[tor-bugs] #24480 [Core Tor/Tor]: Signed/unsigned mismatch
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Dec 1 15:04:44 UTC 2017
#24480: Signed/unsigned mismatch
--------------------------+------------------------
Reporter: ln5 | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------
Comment (by ln5):
Using clang 3.4.1:
{{{
CC src/or/rendservice.o
/usr/local/src/tor/src/or/rendservice.c:2027:29: error: comparison of
integers of different signs: 'ssize_t'
(aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-
compare]
parsed_req->ciphertext, MIN(parsed_req->ciphertext_len, keylen),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
/usr/include/sys/param.h:298:23: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24480#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list