Skip to content

Buffer overflow in SBAS processing #1

Description

@David-Loibl

The following SBAS call ...
xdim=$(gmt grdinfo -C unwrap.grd | awk '{print $10}') ydim=$(gmt grdinfo -C unwrap.grd | awk '{print $11}') n_int=$(wc -l < intf.tab) n_scn=$(wc -l < scene.tab) sbas intf.tab scene.tab $n_int $n_scn $xdim $ydim -smooth 1.0 -wavelength 0.0554658 -incidence 30 -range 800184.946186 -rms -dem
results in this error:

mode --> 2

compute RMS misfit
compute DEM error

setting smoothing to 1.000
setting radar wavelength to 0.055 m
setting radar incidence angle to 30.000 degree
setting range to 800184.946 m
Memory Allocation Successful...
read table file ...
number of SAR scenes is 4
number of interferograms is 4
read phase and correlation grids ...
*** buffer overflow detected ***: sbas terminated
======= Backtrace: =========
/usr/lib64/libc.so.6(__fortify_fail+0x37)[0x2ac567943077]
/usr/lib64/libc.so.6(+0x10d230)[0x2ac567941230]
/usr/lib64/libgmt.so.5(gmt_grd_get_format+0x4d8)[0x2ac5639e57b8]
/usr/lib64/libgmt.so.5(gmtlib_read_grd_info+0x1d)[0x2ac5639e5a9d]
/usr/lib64/libgmt.so.5(+0x4ecfc)[0x2ac5639bacfc]
/usr/lib64/libgmt.so.5(GMT_Read_Data+0x203)[0x2ac5639bb513]
sbas[0x404c4e]
sbas[0x401cba]
/usr/lib64/libc.so.6(__libc_start_main+0xf5)[0x2ac567855b35]
sbas[0x4016d9]
======= Memory map: ========
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions