summaryrefslogtreecommitdiff
path: root/common/kgdb_stubs.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-01-13 15:05:34 -0800
committerGerrit <chrome-bot@google.com>2012-01-13 16:00:43 -0800
commitc98691ab0e592a4806607192d12a45a9af69d5a0 (patch)
tree9f0eff67e75b66e12be1733774af171801a90542 /common/kgdb_stubs.c
parent45a25a37f94d0d3816c97319ed67f320247e26b6 (diff)
stdio: fix stack memory corruption
When copying the device name, the temporary target variable was twice smaller than the copy size. Create a define to ensure this won't break again. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:7188 chrome-os-partner:7430 chrome-os-partner:7432 chrome-os-partner:7559 TEST=On lumpy with usb keyboard configured, run in recovery mode, insert a bad key, press tab, remove the key, press tab. The recovery info are displayed properly. Change-Id: Ia9e765555d2f4efba81b8c389be2778cf2b92db0 Reviewed-on: https://gerrit.chromium.org/gerrit/14185 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'common/kgdb_stubs.c')
0 files changed, 0 insertions, 0 deletions