Re:OpenBSD, C, httpd and SQLite – Web App stack
by sunfish on Saturday June 09, 2018 @01:01PM
(#17273869)
How did I forget:
- forget to #include string.h, so strdup is implicitly declared, so its return type is int, which implicitly converts to char*, so everything still compiles -> possible UB
- forget to #include string.h, so strdup is implicitly declared, so its return type is int, which implicitly converts to char*, so everything still compiles -> possible UB