Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #15546

Closed (moved)
(moved)
Open
Created Apr 01, 2015 by donncha@donncha

handle_control_postdescriptor() modifies a const char

handle_control_postdescriptor() in src/or/control.c modifies the const char body. This is a pretty bad practice and might causes errors with non writable memory segments.

static int handle_control_postdescriptor(control_connection_t *conn, 
                                         uint32_t len, const char *body) {
    char *cp = memchr(body, '\n', len);
    smartlist_t *args = smartlist_new();
    tor_assert(cp);*cp++ = '\0';
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking