Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(102)

Issue 617002: Updating MDRawMiscInfo to support verions 3 and 4 of the MINIDUMP_MISC_INFO_N structure (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by Ivan Penkov
Modified:
10 years, 9 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Updating MDRawMiscInfo to support verions 3 and 4 of the MINIDUMP_MISC_INFO_N
structure.  Added the necessary code for swapping and string conversion from
UTF-16.  Found and fixed a bug in MinidumpAssertion::Read where the max string
length passed to UTF16codeunits was in bytes instead of UTF-16 chars. 

Tested with a minidump containing a version 3 structure to validate the string
conversion routines.  Interestingly enough the time_zone names does not appear
to be abbreviation as the documentation was suggesting but full names, e.g.
Eastern Standard Time:

MDRawMiscInfo
  size_of_info                 = 232
  flags1                       = 0xf7
  process_id                   = 0x54c4
  process_create_time          = 0x51a9323c
  process_user_time            = 0x1
  process_kernel_time          = 0x0
  processor_max_mhz            = 3100
  processor_current_mhz        = 1891
  processor_mhz_limit          = 3100
  processor_max_idle_state     = 0x1
  processor_current_idle_state = 0x1

The new fileds follow:
  process_integrity_level      = 0x1000
  process_execute_flags        = 0x4d
  protected_process            = 0
  time_zone_id                 = 2
  time_zone.bias               = 300
  time_zone.standard_name      = Eastern Standard Time
  time_zone.daylight_name      = Eastern Daylight Time
Committed: https://code.google.com/p/google-breakpad/source/detail?r=1204

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/google_breakpad/common/minidump_format.h View 1 2 3 4 4 chunks +104 lines, -9 lines 0 comments Download
M src/google_breakpad/processor/minidump.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/processor/minidump.cc View 1 2 13 chunks +135 lines, -53 lines 0 comments Download

Messages

Total messages: 9
Ivan Penkov
Please, review.
10 years, 9 months ago #1
Mark Mentovai
https://breakpad.appspot.com/617002/diff/2001/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): https://breakpad.appspot.com/617002/diff/2001/src/google_breakpad/common/minidump_format.h#newcode662 src/google_breakpad/common/minidump_format.h:662: uint16_t wYear; All of the fields in structures in ...
10 years, 9 months ago #2
Ivan Penkov
Done. https://breakpad.appspot.com/617002/diff/2001/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): https://breakpad.appspot.com/617002/diff/2001/src/google_breakpad/common/minidump_format.h#newcode662 src/google_breakpad/common/minidump_format.h:662: uint16_t wYear; On 2013/07/19 21:36:30, Mark Mentovai wrote: ...
10 years, 9 months ago #3
Siggi
lgtm with a nit - for what it's worth. Are there really no tests in ...
10 years, 9 months ago #4
Mark Mentovai
LGTM https://breakpad.appspot.com/617002/diff/7001/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): https://breakpad.appspot.com/617002/diff/7001/src/google_breakpad/common/minidump_format.h#newcode735 src/google_breakpad/common/minidump_format.h:735: * may not be set. Use flags1 or ...
10 years, 9 months ago #5
Ivan Penkov
Done. https://breakpad.appspot.com/617002/diff/7001/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): https://breakpad.appspot.com/617002/diff/7001/src/google_breakpad/common/minidump_format.h#newcode735 src/google_breakpad/common/minidump_format.h:735: * may not be set. Use flags1 or ...
10 years, 9 months ago #6
Mark Mentovai
LGTM
10 years, 9 months ago #7
Ted Mielczarek
https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/minidump_format.h#newcode679 src/google_breakpad/common/minidump_format.h:679: uint16_t standard_name[32]; /* UTF-16 */ Mention that these are ...
10 years, 9 months ago #8
Ivan Penkov
10 years, 9 months ago #9
Done.

https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/min...
File src/google_breakpad/common/minidump_format.h (right):

https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/min...
src/google_breakpad/common/minidump_format.h:679: uint16_t standard_name[32]; 
/* UTF-16 */
On 2013/08/02 16:18:40, Ted Mielczarek wrote:
> Mention that these are full time zone names in practice, if that differs from
> the documentation.
> 
> Also, are these strings NULL terminated? You should mention that.

Done.

https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/min...
src/google_breakpad/common/minidump_format.h:689: * Pacific Daylight Time.  This
string can be empty. */
On 2013/08/02 16:18:40, Ted Mielczarek wrote:
> Same here.

Done.

https://breakpad.appspot.com/617002/diff/12001/src/google_breakpad/common/min...
src/google_breakpad/common/minidump_format.h:689: * Pacific Daylight Time.  This
string can be empty. */
On 2013/08/02 16:18:40, Ted Mielczarek wrote:
> Same here.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted