Fix buffer overflow in liveedit.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 May 2010 08:59:36 +0000 (08:59 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 May 2010 08:59:36 +0000 (08:59 +0000)
commitaf70ad5fdc9970cf16b44457776a5c74bff05b8a
tree4c9768f8a9807396dde2c50273ffeb199660797b
parent393a26b17ec82647eae24c67156c95d03085279d
Fix buffer overflow in liveedit.

Make sure that there is always room for RelocInfoWriter::kMaxSize
bytes in the buffer before writing to it. We only ensured space for 8
bytes, but relocation information can be up to 16 bytes in x64.

Review URL: http://codereview.chromium.org/2100010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4683 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/liveedit.cc