isce-framework / isce2

InSAR Scientific Computing Environment version 2
Other
505 stars 249 forks source link

encounter buffer overflow problem when extracting ALOS level-1 data from alaska archive #850

Closed a787854 closed 1 month ago

a787854 commented 4 months ago

ISCE software worked well with ALOS-1 raw (Level-1) data from Alaska data archive before updating. But recently, the software came across the buffer overflow problem when extracting the newly downloaded data from Alaska data archive.

The log info goes like: (Pdb) n

/home/yanghai/isce2/isce/components/isceobj/Sensor/ALOS.py(756)extractRaw() -> prmDict = alos.alos_Py(self.parent._leaderFile, (Pdb) n buffer overflow detected : terminated

I wonder if there is a quick way to fix it? Thanks

rtburns-jpl commented 1 month ago

Can you provide some more info on what data you used, and what steps you followed to produce this error? I'll try to reproduce this issue on my end.

a787854 commented 1 month ago

Can you provide some more info on what data you used, and what steps you followed to produce this error? I'll try to reproduce this issue on my end.

Thanks. This problem might come from the Alaska SAR facility. Since I do not come across this problem again using the current ALOS-1 raw data from the facility. I guess this problem was fixed by themself. So this should be no longer an issue. :)

rtburns-jpl commented 1 month ago

Ah, that's interesting. Thanks for the update. I'll close this but please reopen if you run into the same issue again.

a787854 commented 2 weeks ago

The situation is updated. I found a potential problem for processing ALOS raw data. The code was developed by C++. There is a char array with constant length to store the path to alos raw data and header data only accept a path no longer than 100 letters. If the path is too long, a buffer overflow problem will happen. A simple modification was made by me by just increase the length of this char array. There should be better solutions to fix it.