From 9be6f537570db79ee4cecef9fc393b77dfc4beac Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 15 Jul 2011 18:13:00 +0200 Subject: [PATCH] * Bump release 0.8 - Codename thecakeisapie * Fix uninitialized memory issue in r_block_resize() - Thanks vext01 for reporting --- configure | 8 +- configure.acr | 2 +- libr/core/core.c | 5 ++ libr/io/undo.c | 2 +- r2-bindings/python/r_cons.i.experimental | 93 ------------------------ 5 files changed, 11 insertions(+), 99 deletions(-) delete mode 100644 r2-bindings/python/r_cons.i.experimental diff --git a/configure b/configure index 41bf4978d7..0127e4881c 100755 --- a/configure +++ b/configure @@ -104,12 +104,12 @@ done : ${INSTALL_PROGRAM:=${INSTALL} -m 755 -s} : ${INSTALL_MAN:=${INSTALL} -m 444} : ${INSTALL_LIB:=${INSTALL} -c} - PKGNAME='radare2' ; VERSION='0.8b' ; CONTACT_MAIL="pancake@nopcode.org" ; CONTACT_NAME="pancake" ; CONTACT="pancake " ; + PKGNAME='radare2' ; VERSION='0.8' ; CONTACT_MAIL="pancake@nopcode.org" ; CONTACT_NAME="pancake" ; CONTACT="pancake " ; } show_usage() { cat <." exit 0 @@ -204,7 +204,7 @@ case $flag in show_version ; ;; "-r"|"--r"|"--report") echo "PKGNAME: radare2" -echo "VERSION: 0.8b" +echo "VERSION: 0.8" echo "LANGS: c" echo "REQUIRED: libdl" echo "OPTIONAL: libewf" diff --git a/configure.acr b/configure.acr index b3bd5b862d..4b937b3ad1 100644 --- a/configure.acr +++ b/configure.acr @@ -1,5 +1,5 @@ PKGNAME radare2 -VERSION 0.8b +VERSION 0.8 CONTACT pancake ; pancake@nopcode.org LANG_C! diff --git a/libr/core/core.c b/libr/core/core.c index cc0ad65a8e..95dbe2d58a 100644 --- a/libr/core/core.c +++ b/libr/core/core.c @@ -424,7 +424,12 @@ R_API int r_core_block_size(RCore *core, ut32 bsize) { eprintf ("Oops. cannot allocate that much (%u)\n", bsize); core->block = malloc (R_CORE_BLOCKSIZE); core->blocksize = R_CORE_BLOCKSIZE; + if (core->block == NULL) { + eprintf ("Panic in the heap!\n"); + exit (1); + } } else core->blocksize = bsize; + memset (core->block, 0xff, core->blocksize); r_core_block_read (core, 0); return ret; } diff --git a/libr/io/undo.c b/libr/io/undo.c index 8a68839b93..6f396d7e0c 100644 --- a/libr/io/undo.c +++ b/libr/io/undo.c @@ -66,7 +66,7 @@ R_API void r_io_sundo_push(RIO *io) { io->undo.idx++; if (io->undo.idx==R_IO_UNDOS-1) { io->undo.idx--; - eprintf ("undo limit reached\n"); + //eprintf ("undo limit reached\n"); } //if (io->undo.limitundo.idx) io->undo.limit = io->undo.idx; diff --git a/r2-bindings/python/r_cons.i.experimental b/r2-bindings/python/r_cons.i.experimental deleted file mode 100644 index 7835ed4b1b..0000000000 --- a/r2-bindings/python/r_cons.i.experimental +++ /dev/null @@ -1,93 +0,0 @@ -%module r_cons -%{ -#define bool int -#define true 1 -#define false 0 -#include -%} -%include - -extern bool r_cons_init (); -extern bool r_cons_eof (); -extern void r_cons_clear (); -extern void r_cons_clear00 (); -extern void r_cons_reset (); -extern void r_cons_gotoxy (int x, int y); -extern void r_cons_set_raw (bool b); -extern void r_cons_printf (const char* fmt); -extern void r_cons_strcat (const char* str); -extern void r_cons_memcat (const char* str, int len); -extern void r_cons_newline (); -extern void r_cons_flush (); -extern int r_cons_readchar (); -extern void r_cons_any_key (); -extern int r_cons_get_size (int* rows); -extern bool r_cons_yesno (bool def, const char* fmt); - -//%rename(r_cons_is_html) jeje; -%inline %{ -//#define RCons_is_html r_cons_is_html -extern int r_cons_is_html; -%} - -%extend RCons { - RCons () { - return r_cons_new (); - } - - ~RCons () { - r_cons_free (self); - } - - bool init () { - return r_cons_init (); - } - bool eof () { - return r_cons_eof (); - } - void clear () { - r_cons_clear (); - } - void clear00 () { - r_cons_clear00 (); - } - void reset () { - r_cons_reset (); - } - void gotoxy (int x, int y) { - r_cons_gotoxy (x, y); - } - void set_raw (bool b) { - r_cons_set_raw (b); - } - void printf (const char* fmt) { - r_cons_printf (fmt); - } - void strcat (const char* str) { - r_cons_strcat (str); - } - void memcat (const char* str, int len) { - r_cons_memcat (str, len); - } - void newline () { - r_cons_newline (); - } - void flush () { - r_cons_flush (); - } - int readchar () { - return r_cons_readchar (); - } - void any_key () { - r_cons_any_key (); - } - %apply int* OUTPUT { int* rows }; - int get_size (int* rows) { - return r_cons_get_size (rows); - } - bool yesno (bool def, const char* fmt) { - return r_cons_yesno (def, fmt); - } -}; -//} RCons; -