#include <stdio.h>
#include <pthread.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "proxmark3.h"
#include "cmdhfmfhard.h"
#include "hardnested_bf_core.h"
#include "ui.h"
#include "util.h"
+#include "util_posix.h"
#include "crapto1/crapto1.h"
#include "parity.h"
}
-static void* crack_states_thread(void* x){
+static void* __attribute__((force_align_arg_pointer)) crack_states_thread(void* x){
struct arg {
bool silent;