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

Function make_queue

CVE-2022-25636/exploit/exploit.c:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75} msg;
76
77int32_t make_queue(key_t key, int msgflg) {
78 int32_t result;
79 if ((result = msgget(key, msgflg)) == -1) {
80 perror("msgget failure");
81 exit(-1);
82 }
83 return result;
84}
85
86ssize_t get_msg(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) {
87 ssize_t ret;

Callers 2

spray_128_msgsegFunction · 0.70
spray_192Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected