[PATCH] D70805: [analyzer] SValHasDescendant: Determine whether the SVal has an SVal descendant

Csaba Dabis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 01:54:37 PST 2019


Charusso added a comment.

It suppresses stuff in `curl` like:

  char buf[4096];
  size_t linelen = strlen(line);
  char *ptr = realloc(line, linelen + strlen(buf) + 1);
  strcpy(&line[linelen], buf);



  char buffer[256];
  char *string = NULL;
  size_t buflen = strlen(buffer);
  char *ptr = realloc(string, stringlen + buflen + 1);
  string = ptr;
  strcpy(string + stringlen, buffer);



  char *enc = curl_easy_escape(NULL, postdata, (int)size);
  size_t outlen = nlen + strlen(enc) + 2;
  char *n = malloc(outlen);
  strcpy(n, enc);


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70805/new/

https://reviews.llvm.org/D70805





More information about the cfe-commits mailing list