* Bump release 0.8 - Codename thecakeisapie

* Fix uninitialized memory issue in r_block_resize()
  - Thanks vext01 for reporting
This commit is contained in:
pancake 2011-07-15 18:13:00 +02:00
parent 1e9e109d8a
commit 9be6f53757
5 changed files with 11 additions and 99 deletions

8
configure vendored
View File

@ -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 <pancake@nopcode.org>" ;
PKGNAME='radare2' ; VERSION='0.8' ; CONTACT_MAIL="pancake@nopcode.org" ; CONTACT_NAME="pancake" ; CONTACT="pancake <pancake@nopcode.org>" ;
}
show_usage() {
cat <<EOF2
'configure' configures radare2-0.8b to adapt to many kinds of systems.
'configure' configures radare2-0.8 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
@ -186,7 +186,7 @@ take_environ() {
}
show_version() {
echo "radare2-0.8b configuration script done with acr v0.8.6.
echo "radare2-0.8 configuration script done with acr v0.8.6.
The 'Free Software Foundation' message is only for autodetection.
Originally written by pancake <youterm.com>."
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"

View File

@ -1,5 +1,5 @@
PKGNAME radare2
VERSION 0.8b
VERSION 0.8
CONTACT pancake ; pancake@nopcode.org
LANG_C!

View File

@ -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;
}

View File

@ -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.limit<io->undo.idx)
io->undo.limit = io->undo.idx;

View File

@ -1,93 +0,0 @@
%module r_cons
%{
#define bool int
#define true 1
#define false 0
#include <r_cons.h>
%}
%include <r_cons.h>
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;