MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / msg_recv

Function msg_recv

CVE-2021-4154/exploit/exploit-ROP.c:267–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void msg_recv(int msqid, int msg_type, char *data, size_t size) {
268 if (msgrcv(msqid, data, size, msg_type, MSG_NOERROR | IPC_NOWAIT | MSG_COPY) < 0) {
269 perror("msgrcv");
270 exit(-1);
271 }
272}
273
274void msg_free(int msqid, int msg_type, char *data, size_t size) {
275 if (msgrcv(msqid, data, size, msg_type, 0) < 0)

Callers 1

exploitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected