Example C code:
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
printf("%d\n", strlen(argv[1]));
return 0;
}
from qiling import Qiling
ql = Qiling(["a.out", "AAAA"], rootfs="/")
ql.run()
ql = Qiling(["a.out", b"\x80\x80\x80\x80"], rootfs="/")
ql.run()
results should be identical