#138 Bug in TDL_Channel::init()

release_3.10.x
closed
nobody
5
2012-09-15
2006-08-17
No

The index in the tap_doppler_spectrum array can go out
of bounds in the TDL_Channel::init() function if the
TDL_Channel class is used with two different channel
profile lengths because the array length is not updated.

The attached program illustrates the bug. Compile it
using g++ itpp-config --cflags-debug -o
itpp_tdl_channel_init_bug itpp_tdl_channel_init_bug.cpp
itpp-config --libs-debug The first call to
tdl_channel::init() will succeed, but the second call
will give an assertion failure.

Discussion

  • Jordy Potman

    Jordy Potman - 2006-08-17

    Example program showing the bug

     
  • Jordy Potman

    Jordy Potman - 2006-08-17

    Logged In: YES
    user_id=1417468

    The attached patch fixes this bug by checking that the
    length of the length of the tap_doppler_spectrum array is
    equal to the number of taps in the channel profile.

     
  • Jordy Potman

    Jordy Potman - 2006-08-17

    Patch to fix the bug

     
  • Adam Piątyszek

    Adam Piątyszek - 2006-08-19

    Logged In: YES
    user_id=1004597

    Hi Jordy,

    Thanks for your excellent bug report and the patch provided.
    The fix is already in the repository (rev. 646), so I am
    closing this bug report.

    /ediap

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks