pmdammv, qa: hardening mmap file data handling
commit7133355077b988c559335ef346ba97a379f60504
authorNathan Scott <nathans@redhat.com>
Fri, 10 Jun 2016 07:58:30 +0000 (10 17:58 +1000)
committerNathan Scott <nathans@redhat.com>
Fri, 10 Jun 2016 07:58:30 +0000 (10 17:58 +1000)
tree3a0305bf1ba4ca2d8d815bd9652181473ac4dd70
parent76d30ea00764eacc947dbed25676443c74f42c7f
pmdammv, qa: hardening mmap file data handling

Numerous updates to pmdammv to make sure it cannot be coerced
into accessing memory outside of the memory mapped files that
it loads.  In addition, sensible (but still large) limits are
placed on the data structures that are allocated to hold data
representing various parts of the mappings.

The mmvdump utility is updated in a similar way to improve its
resilience in the presence of bad mappings.  It also has some
slight output refinements (symbolic flag printing, etc).

This tackles SGI BZ 1062.
qa/646.out
qa/990
qa/990.out [new file with mode: 0644]
qa/src/.gitignore
qa/src/GNUlocaldefs
qa/src/badmmv.c [new file with mode: 0644]
src/pmdas/mmv/mmvdump.c
src/pmdas/mmv/src/mmv.c