aboutsummaryrefslogtreecommitdiffstats
path: root/prog/alloc.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use min/max functionsDmitry Vyukov2025-01-171-8/+2
| | | | They are shorter, more readable, and don't require temp vars.
* prog/alloc: align address allocation for aligned[addr]Albert van der Linde2020-07-141-3/+8
| | | | | | | | | Calls to alloc didn't respect the alignment attribute. Now Type.Alignment() is used to ensure each type is correctly aligned. Existing descriptions with [align[X]] don't have an issue as they align to small blocks and default align is to 64 bytes. This commits adds support for [align[X]] for an X larger than 64.
* prog: fix a bunch of bugs in parsingDmitry Vyukov2019-03-291-1/+1
| | | | | | Add fuzzer for Deserialize and fix 5 or so bugs it found. Fixes #1086
* prog: rework address allocationDmitry Vyukov2018-02-191-0/+164
1. mmap all memory always, without explicit mmap calls in the program. This makes lots of things much easier and removes lots of code. Makes mmap not a special syscall and allows to fuzz without mmap enabled. 2. Change address assignment algorithm. Current algorithm allocates unmapped addresses too frequently and allows collisions between arguments of a single syscall. The new algorithm analyzes actual allocations in the program and places new arguments at unused locations.