Skip to content

Instantly share code, notes, and snippets.

@vosen
Created April 14, 2015 18:35
Show Gist options
  • Save vosen/baa3e405b5dffb38e4fd to your computer and use it in GitHub Desktop.
Save vosen/baa3e405b5dffb38e4fd to your computer and use it in GitHub Desktop.
win64 ffi miscompile working c
#include <stdio.h>
#include <stdint.h>
typedef struct data {
uint64_t bar;
uint64_t baz;
} data;
void foo(data a1,
data a2,
data a3,
data a4,
data a5) {
printf("%d\n", a1.bar);
printf("%d\n", a2.bar);
printf("%d\n", a3.bar);
printf("%d\n", a4.bar);
printf("%d\n", a5.bar);
}
void c_main(void);
int main(void) {
c_main();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment