Open Mis012 opened 1 year ago
example binary: libsteam_api.so.gz
following supplied with -I
:
#define _GNU_SOURCE
#define __fortify_function
#define __USE_FORTIFY_LEVEL 3 // > 1
#include <stdio.h>
#include <stdlib.h>
#include <bits/stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/stat.h>
#include <dlfcn.h>
#include <unwind.h>
#include <math.h>
#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include "/usr/include/c++/10/x86_64-suse-linux/bits/os_defines.h"
#include "/usr/include/c++/10/x86_64-suse-linux/bits/c++config.h"
#include <c++/10/cxxabi.h>
extern int __fprintf_chk (FILE *__restrict __stream, int __flag,
const char *__restrict __format, ...);
extern int __printf_chk (int __flag, const char *__restrict __format, ...);
extern int __vfprintf_chk (FILE *__restrict __stream, int __flag,
const char *__restrict __format, __gnuc_va_list __ap);
extern int __vprintf_chk (int __flag, const char *__restrict __format,
__gnuc_va_list __ap);
void __stack_chk_fail(void);
Thanks for your interest in the project and the bug report.
I will plan to triage the issue.
happened with first two random x86_64 binaries I tried, so statistically seems like it should be common, however simple
echo 'int main(int argc, char **argv) {printf("hello_world");}' >tst.c
compiled with gcc is lifted without errors