libcester icon indicating copy to clipboard operation
libcester copied to clipboard

Segfault in some pointer to pointer schenerio

Open Thecarisma opened this issue 4 years ago • 3 comments

all cester cester_assert_ptr_not_equal, cester_assert_str_equal is causing segfault in a pointer to pointer scenerio, fix in libcester

char **ptr;

Thecarisma avatar Jun 19 '21 12:06 Thecarisma

Debugged the issue down to cester_concat_str, the issue is trying to free the *out variable that was never malloced, I guess. in line 991

Thecarisma avatar Jun 26 '21 09:06 Thecarisma

the previous comment was wrong, this bug is from hell.

Thecarisma avatar Jun 26 '21 09:06 Thecarisma

Lol. Truly from hell

creativeJoe007 avatar Jul 22 '21 15:07 creativeJoe007