Attention is currently required from: Mark Cogan.
3 comments:
Patchset:
ptal, thanks!
File snapshot/ios/exception_snapshot_ios_intermediate_dump.cc:
Patch Set #2, Line 182: // TODO: rationalize with the macOS implementation.
I'm not sure what's left to change here. Mac's `ExceptionSnapshotMac::Initialize` sets `exception_` and `codes_` the same way. Mac has some additional logic for EXC_CRASH, EXC_RESOURCE and EXC_GUARD crashes, but we can't catch those on iOS.
What do you think?
Patch Set #2, Line 189: code_count
This check probably isn't necessary since, but the second one is. Any objections?
To view, visit change 4255568. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Justin Cohen, Mark Cogan.
3 comments:
File snapshot/ios/exception_snapshot_ios_intermediate_dump.cc:
Patch Set #2, Line 182: // TODO: rationalize with the macOS implementation.
I'm not sure what's left to change here. Mac's `ExceptionSnapshotMac::Initialize` sets `exception_` and `codes_` the same way. Mac has some additional logic for EXC_CRASH, EXC_RESOURCE and EXC_GUARD crashes, but we can't catch those on iOS.
What do you think?
Sounds fine.
Patch Set #2, Line 189: code_count
This check probably isn't necessary since, but the second one is. Any objections?
I agree. Although you left out the explanation after “since”, I do see what I think you mean.
The best way to express this is to turn it into a `DCHECK_GE`.
if (code_count >= 2)
exception_address_ = code[1];
There’s a strong push to always use braces now in Chrome, and it’s even stronger in Crashpad.
To view, visit change 4255568. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Mark Cogan, Mark Mentovai.
Patch set 3:Commit-Queue +1
4 comments:
Patchset:
Thanks, ptal!
File snapshot/ios/exception_snapshot_ios_intermediate_dump.cc:
Patch Set #2, Line 182: // TODO: rationalize with the macOS implementation.
> I'm not sure what's left to change here. […]
removed TODO.
Patch Set #2, Line 189: code_count
> This check probably isn't necessary since, but the second one is. Any objections? […]
Done
if (code_count >= 2)
exception_address_ = code[1];
There’s a strong push to always use braces now in Chrome, and it’s even stronger in Crashpad.
Done
To view, visit change 4255568. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Justin Cohen, Mark Cogan.
Patch set 3:Code-Review +1
Attention is currently required from: Justin Cohen, Mark Cogan.
Patch set 3:Commit-Queue +2
Crashpad LUCI CQ submitted this change.
ios: Validate exception code buffer size before read.
Bug: 1415371
Change-Id: I9e1bd902494a664d4f07829e686803712fa8e7a8
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4255568
Reviewed-by: Mark Mentovai <ma...@chromium.org>
Commit-Queue: Justin Cohen <justi...@chromium.org>
---
M snapshot/BUILD.gn
M snapshot/ios/exception_snapshot_ios_intermediate_dump.cc
M snapshot/ios/process_snapshot_ios_intermediate_dump_test.cc
A snapshot/ios/testdata/crash-c44acfcbccd8c7a8
4 files changed, 25 insertions(+), 3 deletions(-)