Allocator sizeof operand mismatch

clang analyzer

process.c:4666
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
process.c:4668
Result of 'malloc' is converted to a pointer of type 'int', which is incompatible with sizeof operand type 'int *'
process.c:4687
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
screen.c:1266
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
Dead assignment

clang analyzer

Value stored to 'rep_cnt' is never read
Dead assignment

clang analyzer

Value stored to 'font' is never read
Value stored to 'inhstr' is never read
Dead assignment

clang analyzer

Value stored to 'i' is never read
Dead assignment

clang analyzer

Value stored to 'x1' is never read
Use-after-free

clang analyzer

move it before free
Use-after-free

clang analyzer

this one should've been freeing something else
Double free memory

found by clang analyzer

mark memory as freed so it doesn't try to realloc it later
Dereference of null pointer

found by clang analyzer

make sure we have event, before doing anything
Dereference of null pointer

detected by clang analyzer

make sure we got our event before handling it
Dereference of null pointer

detected by clang analyzer

make sure we got window before
Dereference of null pointer

detected by clang analyzer

this function needs display to work properly
Dereference of null pointer

detected by clang analyzer

make sure ml is not NULL