Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 319
    • Issues 319
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 37
    • Merge requests 37
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #1173
Closed
Open
Created Dec 13, 2009 by Roger Dingledine@armaReporter

crypto.c:613: error: comparison of unsigned expression >= 0 is always true

https://buildbot.vidalia-project.net/builders/kore.fc12.tor-master/builds/0/steps/compile/logs/stdio

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -g -O2 -Wall -g -O2 -fno-strict-aliasing -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Wold-style-definition -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1 -Wextra -Warray-bounds -MT crypto.o -MD -MP -MF .deps/crypto.Tpo -c -o crypto.o crypto.c cc1: warnings being treated as errors crypto.c: In function ‘crypto_pk_write_key_to_string_impl’: crypto.c:613: error: comparison of unsigned expression >= 0 is always true make[3]: *** [crypto.o] Error 1

Line is tor_assert(buf->length >= 0);

where buf is BUF_MEM *buf;

I bet fc12's openssl has a different BUF_MEM.

edmanm> [edmanm@kore ~]$ openssl version edmanm> OpenSSL 1.0.0-fips-beta4 10 Nov 2009

Sebastian> the line hasn't been changed since r2461

Nick, any opinions?

[Automatically added by flyspray2trac: Operating System: All]

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking