[GRASS5] v.hull realloc error

Hi,

I discovered a nice
  *** glibc detected *** realloc(): invalid next size: 0x08d498b0 ***
error in v.hull.

v.random out=three n=3
v.hull triangle out=hull
WARNING: Vector used instead of sites.
*** glibc detected *** realloc(): invalid next size: 0x09fd7ca0 ***
Aborted

The offending line is vector/v.hull/main.c, line 117:
   *hull = (int*) G_realloc((char*)(*hull), (loPoints + upPoints) * sizeof(int));

As I am not very familiar with G_realloc(), I am posting here...

Markus

Markus Neteler wrote:

Hi,

I discovered a nice
*** glibc detected *** realloc(): invalid next size: 0x08d498b0 ***
error in v.hull.

v.random out=three n=3
v.hull triangle out=hull
WARNING: Vector used instead of sites.
*** glibc detected *** realloc(): invalid next size: 0x09fd7ca0 ***
Aborted

The offending line is vector/v.hull/main.c, line 117:
  *hull = (int*) G_realloc((char*)(*hull), (loPoints + upPoints) * sizeof(int));

As I am not very familiar with G_realloc(), I am posting here...

Fixed by Brad,

thanks

Markus