]> git.tuebingen.mpg.de Git - paraslash.git/commit
load_afd(): Double check shared memory sizes.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 5 May 2025 21:52:42 +0000 (23:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 17 May 2025 19:25:41 +0000 (21:25 +0200)
commit4d450861f7ff701e4b10c35abda7a1af64d9f7ef
treef6eb96d922b2d6f2eb06897ba3cbc3efd727683f
parent93b6e14b6dc5cb1aa00f76cbb5cca0cd8d33643a
load_afd(): Double check shared memory sizes.

The shared memory ID is sent by a trusted source, so it is a programming error
(rather than a runtime error that could be handled) if the size of the shared
memory area is smaller than the size of an audio file data structure. Thus,
the right thing to do is to abort immediately in this case.
aft.c