Commit 82ac3f30 authored by iposva@chromium.org's avatar iposva@chromium.org

- Fix buffer overflow in the pre-allocated memory thread.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1733 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7dece760
......@@ -123,8 +123,8 @@ class PreallocatedMemoryThread: public Thread {
local_buffer.length());
// Publish the local buffer and signal its availability.
data_ = &local_buffer[0];
length_ = sizeof(local_buffer);
data_ = local_buffer.start();
length_ = local_buffer.length();
data_ready_semaphore_->Signal();
while (keep_running_) {
......
......@@ -25,6 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// The flags below are to test the trace-calls functionality and the
// preallocated meessage memory.
// Flags: --trace-calls --preallocate-message-memory
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment