commit | e7865735aa22d55b2593cb02549a166fc2edd44b | [log] [tgz] |
---|---|---|
author | Han Shen <shenhan@google.com> | Tue Apr 02 15:48:37 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Wed Apr 03 16:34:50 2013 -0700 |
tree | 07f05193d26add9b892068ad4a47ec3f253eab5b | |
parent | cc62ab05f132ecb78d6e7558f961c5faf2aa46c4 [diff] |
Fix improper use of memset. For the following code snippet - char *str; str = (char *)malloc(...); memset(str, '\0', sizeof(str)); ^^^^^^^^^^^ always equals 4 or 8 TEST=Built. BUG=None Change-Id: I42fb6c27a2bd8cdbeb4941d8b01e242132132154 Reviewed-on: https://gerrit.chromium.org/gerrit/47191 Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: Han Shen <shenhan@google.com> Commit-Queue: Han Shen <shenhan@google.com>