We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void repodata_search_keyskip(), src/repodata.c
The NULL Dereference vulnerability happens in void repodata_search_keyskip(), src/repodata.c How the NULL Pointer Dereference happens:
repodata_search
repodata_search_keyskip
*keyskip
kv.parentis
kv.parent = (KeyValue *)keyskip;
kv.parent
schema = kv.parent->id;
void repodata_search(Repodata *data, Id solvid, Id keyname, int flags, int (*callback) (void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata) { => repodata_search_keyskip(data, solvid, keyname, flags, 0, callback, cbdata); } void repodata_search_keyskip(Repodata *data, Id solvid, Id keyname, int flags, Id *keyskip, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata) { Id schema; Repokey *key; Id keyid, *kp, *keyp; unsigned char *dp, *ddp; int onekey = 0; int stop; KeyValue kv; Solvable *s; if (!maybe_load_repodata(data, keyname)) return; => if ((flags & SEARCH_SUBSCHEMA) != 0) { flags ^= SEARCH_SUBSCHEMA; => kv.parent = (KeyValue *)keyskip; keyskip = 0; => schema = kv.parent->id; dp = (unsigned char *)kv.parent->str; } else { ...... } ...... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The NULL Dereference vulnerability happens in
void repodata_search_keyskip(), src/repodata.c
How the NULL Pointer Dereference happens:
repodata_search
callsrepodata_search_keyskip
and passes*keyskip
, the value of*keyskip
is 0.kv.parentis
set to NULL atkv.parent = (KeyValue *)keyskip;
kv.parent
inschema = kv.parent->id;
The text was updated successfully, but these errors were encountered: