Commit 1825dbe6 authored by Julian Kranz's avatar Julian Kranz

Minor bug fixes

parent f9d6da65
......@@ -554,7 +554,7 @@ endif
if HAVE_RREIL
libgdsl_multiplex_la_SOURCES = $(srcdir)/libs/gdsl-multiplex/src/gdsl_multiplex.c
libgdsl_multiplex_la_CFLAGS = -I$(srcdir)/libs/gdsl-multiplex/include
libgdsl_multiplex_la_CFLAGS = -std=c99 -I$(srcdir)/libs/gdsl-multiplex/include
libgdsl_multiplex_la_LDFLAGS = -ldl
include_HEADERS += $(srcdir)/libs/gdsl-multiplex/include/gdsl_multiplex.h
if HAVE_MEMSTREAM
......
......@@ -6,6 +6,7 @@
*/
#include <stdlib.h>
#define __USE_XOPEN2K8
#include <stdio.h>
#include <stdint.h>
#include <string.h>
......
......@@ -38,7 +38,7 @@ static struct memory_allocation *memory_allocation_get(struct context *context,
struct memory_allocation *allocation = NULL;
for(size_t i = 0; i < context->memory.allocations_length; ++i)
if(ptr >= context->memory.allocations[i].address
&& ptr
&& (size_t)ptr
< (size_t)context->memory.allocations[i].address
+ context->memory.allocations[i].data_size) {
allocation = &context->memory.allocations[i];
......
......@@ -9,6 +9,7 @@
#define EXECUTOR_H_
#include <signal.h>
#include <x86.h>
enum execution_result_type {
EXECUTION_RTYPE_SUCCESS, EXECUTION_RTYPE_MAPPING_ERROR, EXECUTION_RTYPE_SIGNAL
......
......@@ -28,7 +28,8 @@ int main(int argc, char** argv) {
for(size_t i = 0; i < frontends_count; ++i)
printf("\t[%zu] %s\n", i, frontends[i].name);
printf("Your choice? ");
scanf("%zu", &frontend_ind);
if(scanf("%zu", &frontend_ind) <= 0)
frontend_ind = 0;
}
if(frontend_ind >= frontends_count) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment