[LTP] [PATCH] [PATCH] [PATCH v4] Migrating the libhugetlbfs/testcases/truncate_above_4GB.c test

Cyril Hrubis chrubis@suse.cz
Tue Mar 10 12:42:46 CET 2026


Hi!
> +static void run_test(void)
> +{
> +	static long long buggy_offset, truncate_point;
                                          ^
Looking closer at the code this variable is used uninitialized.

But there is a variable with the same name in the test setup. Wasn't
this supposed to be a global variable set in the test setup()?

Or we can get rid of the variable completely and use the FOURGIG
instead both in the setup and here.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list