mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-29 02:35:31 +01:00
Correct compilation warning.
1) Modify src/common/mac/macho_walker.cc to remove a signed vs unsigned comparison. 2) Replace mktemp in test using AutoTmpDir that has been moved from client/mac/tests to common/tests. Review URL: http://breakpad.appspot.com/328001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@888 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
84571a2b91
commit
bad70be095
8 changed files with 157 additions and 133 deletions
|
|
@ -105,9 +105,11 @@ bool MachoWalker::WalkHeader(int cpu_type) {
|
|||
|
||||
bool MachoWalker::ReadBytes(void *buffer, size_t size, off_t offset) {
|
||||
if (memory_) {
|
||||
if (offset < 0)
|
||||
return false;
|
||||
bool result = true;
|
||||
if (offset + size > memory_size_) {
|
||||
if (offset >= memory_size_)
|
||||
if (static_cast<size_t>(offset) >= memory_size_)
|
||||
return false;
|
||||
size = memory_size_ - offset;
|
||||
result = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue