[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #24480 [Core Tor/Tor]: Signed/unsigned mismatch
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs