ypmen / XLibs

Libraries for TransientX, PulsarX...
2 stars 1 forks source link

Magic number of max frequency channel (16320) should be documented #2

Open fxzjshm opened 5 months ago

fxzjshm commented 5 months ago

Max frequency channel is set at https://github.com/ypmen/XLibs/blob/4f7c3a8be78ba03fe1b331b278bd000f757d2b69/src/formats/filterbank.cpp#L51 if more channels are used, this causes

malloc(): corrupted top size

at https://github.com/ypmen/XLibs/blob/d3a7f861fb819df6c9f11e3b5d58f6513d63b61e/src/module/filterbankreader.cpp#L113 which is hard to debug (found by address sanitizer).

Just to say that anyone who wants to use more channels can adjust this value to let it work for now.

ypmen commented 5 months ago

Thanks for reporting it! It was increased to 65536.