OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains the default suppressions for AddressSanitizer. | 5 // This file contains the default suppressions for AddressSanitizer. |
6 // It should only be used under very limited circumstances such as suppressing | 6 // It should only be used under very limited circumstances such as suppressing |
7 // a report caused by an interceptor call in a system-installed library. | 7 // a report caused by an interceptor call in a system-installed library. |
8 | 8 |
| 9 #include "build/build_config.h" |
| 10 |
9 #if defined(ADDRESS_SANITIZER) | 11 #if defined(ADDRESS_SANITIZER) |
10 | 12 |
11 // Please make sure the code below declares a single string variable | 13 // Please make sure the code below declares a single string variable |
12 // kASanDefaultSuppressions which contains ASan suppressions delimited by | 14 // kASanDefaultSuppressions which contains ASan suppressions delimited by |
13 // newlines. | 15 // newlines. |
14 char kASanDefaultSuppressions[] = | 16 char kASanDefaultSuppressions[] = |
15 // http://crbug.com/178677 | 17 // http://crbug.com/178677 |
16 "interceptor_via_lib:libsqlite3.so\n" | 18 "interceptor_via_lib:libsqlite3.so\n" |
17 | 19 |
| 20 #if defined(OS_MACOSX) |
| 21 // http://crbug.com/674435 |
| 22 "interceptor_via_fun:mig_strncpy\n" |
| 23 #endif |
| 24 |
18 // PLEASE READ ABOVE BEFORE ADDING NEW SUPPRESSIONS. | 25 // PLEASE READ ABOVE BEFORE ADDING NEW SUPPRESSIONS. |
19 | 26 |
20 // End of suppressions. | 27 // End of suppressions. |
21 ; // Please keep this semicolon. | 28 ; // Please keep this semicolon. |
22 | 29 |
23 #endif // ADDRESS_SANITIZER | 30 #endif // ADDRESS_SANITIZER |
OLD | NEW |