Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #5969

Closed (moved)
Open
Opened May 27, 2012 by Sebastian Hahn@sebastian

A couple of compile warnings with clang 3.1

First one is

crypto.c:1888:38: error: size argument in 'strlcpy' call appears to be size of
      the source; expected the size of the destination
      [-Werror,-Wstrlcpy-strlcat-size]
    strlcpy(fname_new, fname, strlen(fname) + 8);
                              ~~~~~~~^~~~~~~~~~

second one is


compat.c:362:28: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  r = vsnprintf(str, size, format, args);
      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/secure/_stdio.h:72:63: note: expanded from macro 'vsnprintf'
  __builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
                                                              ^
compat.c:412:32: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  int r = vasprintf(&strp_tmp, fmt, args);
                               ^~~
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.2.x-final
Milestone
Tor: 0.2.2.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#5969