Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Issue 10696165: Don't allow OS::SNPrint or OS::VSNPrint to return negative values. (Closed)

Created:
8 years, 5 months ago by turnidge
Modified:
8 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, mjurczyk
Visibility:
Public.

Description

Don't allow OS::SNPrint or OS::VSNPrint to return negative values. If we encounter conditions that would have caused vsnprintf to return a negative value, then something pretty wild is going on. We choose to terminate the vm when this occurs. This fixes security bug 1745. Committed: https://code.google.com/p/dart/source/detail?r=9558

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M tests/vm/vm.status View 1 1 chunk +3 lines, -0 lines 0 comments Download
M vm/os.h View 1 1 chunk +14 lines, -9 lines 0 comments Download
M vm/os_linux.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M vm/os_macos.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M vm/os_test.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M vm/os_win.cc View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
turnidge
8 years, 5 months ago (2012-07-11 00:20:19 UTC) #1
turnidge
8 years, 5 months ago (2012-07-11 00:22:35 UTC) #2
siva
8 years, 5 months ago (2012-07-11 01:41:15 UTC) #3
lgtm

Powered by Google App Engine
This is Rietveld 408576698