OLD | NEW |
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 break; | 85 break; |
86 } | 86 } |
87 } | 87 } |
88 | 88 |
89 BPLOG_IF(ERROR, !platform_exploitability) << | 89 BPLOG_IF(ERROR, !platform_exploitability) << |
90 "No Exploitability module for platform: " << | 90 "No Exploitability module for platform: " << |
91 process_state->system_info()->os; | 91 process_state->system_info()->os; |
92 return platform_exploitability; | 92 return platform_exploitability; |
93 } | 93 } |
94 | 94 |
95 bool Exploitability::AddressIsAscii(u_int64_t address) { | 95 bool Exploitability::AddressIsAscii(uint64_t address) { |
96 for (int i = 0; i < 8; i++) { | 96 for (int i = 0; i < 8; i++) { |
97 u_int8_t byte = (address >> (8*i)) & 0xff; | 97 uint8_t byte = (address >> (8*i)) & 0xff; |
98 if ((byte >= ' ' && byte <= '~') || byte == 0) | 98 if ((byte >= ' ' && byte <= '~') || byte == 0) |
99 continue; | 99 continue; |
100 return false; | 100 return false; |
101 } | 101 } |
102 return true; | 102 return true; |
103 } | 103 } |
104 | 104 |
105 } // namespace google_breakpad | 105 } // namespace google_breakpad |
106 | 106 |
OLD | NEW |