Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # See https://bugs.kde.org/show_bug.cgi?id=205541#c1 | |
| 2 Index: memcheck/mc_main.c | |
| 3 =================================================================== | |
| 4 --- memcheck/mc_main.c (revision 10877) | |
|
Timur Iskhodzhanov
2009/10/21 09:33:28
why not 10880?
| |
| 5 +++ memcheck/mc_main.c (working copy) | |
| 6 @@ -3708,7 +3708,14 @@ | |
| 7 if (rr || ww || xx) | |
| 8 MC_(make_mem_defined)(a, len); | |
| 9 else | |
| 10 - MC_(make_mem_noaccess)(a, len); | |
| 11 + MC_(make_mem_defined)(a, len); | |
|
Timur Iskhodzhanov
2009/10/21 09:33:28
In this case the condition above doesn't make sens
| |
| 12 + /* State after mmap(,,PROT_NONE,,,) should match | |
| 13 + * state after mprotect(,,PROT_NONE): the operating system | |
| 14 + * will trap any access, but any subsequent mprotect(,,PROT_R|W|X) | |
| 15 + * will re-instate the previous V bits [in this case, all valid]. | |
| 16 + * See comment in mc_pre_clo_init() re: | |
| 17 + * VG_(track_change_mem_mprotect) ( NULL ); | |
| 18 + */ | |
| 19 } | |
| 20 | |
| 21 static | |
| OLD | NEW |