You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
Problem
In several places of
kdb.c
return values from plugins'kdbGet()
are ignored.This leads to errors in these plugins from being ignored and not reported back to the initial caller of
kdbGet()
.Examples of ignored return values (list might be incomplete)
libelektra/src/libs/elektra/kdb.c
Lines 795 to 805 in 6701d9e
libelektra/src/libs/elektra/kdb.c
Line 837 in 6701d9e
libelektra/src/libs/elektra/kdb.c
Line 845 in 6701d9e
libelektra/src/libs/elektra/kdb.c
Line 853 in 6701d9e
libelektra/src/libs/elektra/kdb.c
Line 894 in 6701d9e
Concrete example
One concrete example for the impact of the first example
libelektra/src/libs/elektra/kdb.c
Lines 795 to 805 in 6701d9e
is that errors detected within
elektraGoptsGet()
are "swallowed".E.g.
opts.c
detects a missing argument for a long option and returns false.libelektra/src/libs/opts/opts.c
Lines 1789 to 1792 in 6701d9e
This leads to the call to
elektraGlobalGet (handle, ks, parentKey, PROCGETSTORAGE, MAXONCE);
at:libelektra/src/libs/elektra/kdb.c
Line 803 in 6701d9e
to fail.
However, the return value is ignored and thusly the error is ignored.
The text was updated successfully, but these errors were encountered: