aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-05-10 01:39:54 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-11 01:27:19 +0200
commit04bfe7a91223ba15d868f7165e49328b1c6e86c3 (patch)
treea92285f9e723b1a8738d81274c22550c6be25beb /utils.c
parent4c0f2ff0a1432f7e1794cf29b1a4667e3a0f8f89 (diff)
downloadmig-04bfe7a91223ba15d868f7165e49328b1c6e86c3.tar.gz
mig-04bfe7a91223ba15d868f7165e49328b1c6e86c3.tar.bz2
mig-04bfe7a91223ba15d868f7165e49328b1c6e86c3.zip
Check that msgt_name is always smaller than 255.
For the x86_64 ABI we want this to always fit into 1 byte. Even for regular i686, msgt_name is always smaller than 25 (MACH_MSG_TYPE_LAST) and we don't have plans to have more names. Also throw an error if we deemed an RPC to be "TooLong" as that won't work or work badly. Tested by cross-compiling a basic Hurd system. Message-Id: <ZFsuKtiLdwNpD6b1@jupiter.tail36e24.ts.net>
Diffstat (limited to 'utils.c')
0 files changed, 0 insertions, 0 deletions