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

Issue 9654002: Use PAGE_MAX_SIZE. PAGE_SIZE is now a variable size. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by justincohen
Modified:
10 years, 5 months ago
Reviewers:
qsr, Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com, blundell
Base URL:
https://google-breakpad.googlecode.com/svn/trunk
Visibility:
Public.

Description

Use PAGE_MAX_SIZE. PAGE_SIZE is now a variable size.

This fixes exception_handler.cc:77:8: error: fields must have a constant size:
'variable length array in structure' extension will never be supported
  char protected_buffer[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));

BUG=None
TEST=breakpad builds on ios8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/mac/handler/exception_handler.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 9
justincohen
This is for iOS8 support. PTAL!
10 years, 5 months ago #1
Mark Mentovai
How is PAGE_MAX_SIZE (and PAGE_SIZE) defined now?
10 years, 5 months ago #2
qsr
On 2014/06/06 15:17:22, Mark Mentovai wrote: > How is PAGE_MAX_SIZE (and PAGE_SIZE) defined now? PAGE_SIZE ...
10 years, 5 months ago #3
Mark Mentovai
Well, PAGE_MAX_SIZE isn’t defined in earlier SDKs, so this is going to need a little ...
10 years, 5 months ago #4
justincohen
#if defined isn't good enough?
10 years, 5 months ago #5
Mark Mentovai
Well, look at how this struct is used. It’s something that gets mprotected. mprotect can ...
10 years, 5 months ago #6
qsr
On 2014/06/06 15:54:52, Mark Mentovai wrote: > Well, look at how this struct is used. ...
10 years, 5 months ago #7
Mark Mentovai
LGTM
10 years, 5 months ago #8
qsr
10 years, 5 months ago #9
Commited

 Justin, could you close this, I do not have the permission to do it.
Sign in to reply to this message.

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