diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-11-14 13:05:22 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-11-17 09:38:09 -0700 |
| commit | cb1ab3899ead0c40d2032eb528806221f08fa98d (patch) | |
| tree | fdf4d15027b8da1c0457b47060b25869a44988d0 | |
| parent | 0996f0d80ca54306dbd1e8fdb37909a79ee16f41 (diff) | |
| download | usermoji-cb1ab3899ead0c40d2032eb528806221f08fa98d.tar.xz | |
icd:Increase WHOLE_SIZE mapped memory
Bump hard-coded mapped memory allocation size for WHOLE_SIZE from 4k to
64k. One validation test (InvalidMemoryMapping) was mapping 64k of
memory that was leading to segF as the 4k buffer was overwritten when
shadowed.
| -rw-r--r-- | scripts/mock_icd_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 7a10c5d3..3366aa18 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -648,9 +648,9 @@ CUSTOM_C_INTERCEPTS = { ''', 'vkMapMemory': ''' unique_lock_t lock(global_lock); - // TODO: Just hard-coding 4k whole size for now + // TODO: Just hard-coding 64k whole size for now if (VK_WHOLE_SIZE == size) - size = 4096; + size = 0x10000; void* map_addr = malloc((size_t)size); mapped_memory_map[memory].push_back(map_addr); *ppData = map_addr; |
