Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bsauce/kernel-exploit-factory
/ writeMsg
Function
writeMsg
CVE-2022-0995/exploit.c:123–127 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
121
}
122
123
int writeMsg(int msqid, void *msgp, size_t msgsz, long msgtyp)
124
{
125
*(long*)msgp = msgtyp;
126
return msgsnd(msqid, msgp, msgsz - sizeof(long), 0);
127
}
128
129
int peekMsg(int msqid, void *msgp, size_t msgsz, long msgtyp)
130
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected