[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault from call through a function pointer in assert_int_equal()


On (14/10/16 15:56), Barta, Hank wrote:
>Hi all,
>I find I get a segfault in the following code:
>    assert_int_equal(0, run_fft(dbl_data, cplx_result, sample_count));
Does it help if you call it with explicit dereferencing?
"(*run_fft)(dbl_data, cplx_result, sample_count)"

Did you try write a minimal reproducer with ANSI C?

LS


References:
Segfault from call through a function pointer in assert_int_equal()"Barta, Hank" <hank.barta@xxxxxxxxx>