commit | a6502897793a712a868cf000c7f656df4a7549ab | [log] [tgz] |
---|---|---|
author | Aart Bik <ajcbik@google.com> | Mon Apr 11 14:14:20 2016 -0700 |
committer | Aart Bik <ajcbik@google.com> | Mon Apr 11 14:18:32 2016 -0700 |
tree | f00b8c7a706396c7e2669b6a46c678a062f099f2 | |
parent | 39f9f67115fc2457a2460b9aa5f38db097688669 [diff] |
Fix potential buffer overrun. BUG=27840771 Rationale: Fixed buffer overrun by recomputing available remaining space at each point. Note, we could use strlcat for exactly this situation, using the full buffer length, but since buffer length - 1 was used in other places, got the code closest to the original. Change-Id: Id38ba34949b7e25ae8acadce1c24e080aebf06ae