From 2e9037c55f6a3308190ab4eb0ce110dddc7a6f2b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 17 Mar 2020 14:32:13 +0100 Subject: pkg/compiler: check that const values fit into base type const[0x12345678, int8] is always an error, detect these cases. Found some bugs in mptcp, socket proto and fuchsia fidl descriptions. --- sys/linux/socket_caif.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux/socket_caif.txt') diff --git a/sys/linux/socket_caif.txt b/sys/linux/socket_caif.txt index bbecaa670..f867b29fc 100644 --- a/sys/linux/socket_caif.txt +++ b/sys/linux/socket_caif.txt @@ -7,8 +7,8 @@ include resource sock_caif[sock] -socket$caif_seqpacket(domain const[AF_CAIF], type const[SOCK_SEQPACKET], proto int8[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif -socket$caif_stream(domain const[AF_CAIF], type const[SOCK_STREAM], proto int8[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif +socket$caif_seqpacket(domain const[AF_CAIF], type const[SOCK_SEQPACKET], proto int32[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif +socket$caif_stream(domain const[AF_CAIF], type const[SOCK_STREAM], proto int32[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif connect$caif(fd sock_caif, addr ptr[in, sockaddr_caif], addrlen len[addr]) setsockopt$CAIFSO_LINK_SELECT(fd sock_caif, level const[SOL_CAIF], opt const[CAIFSO_LINK_SELECT], arg ptr[in, int32], arglen len[arg]) setsockopt$CAIFSO_REQ_PARAM(fd sock_caif, level const[SOL_CAIF], opt const[CAIFSO_REQ_PARAM], arg ptr[in, array[int8, 0:256]], arglen len[arg]) -- cgit mrf-deployment