ib_cursor_open_index_using_name() for index name that doesn't exist causes segfault
Bug #579934 reported by
Stewart Smith
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HailDB |
Fix Released
|
Medium
|
Stewart Smith | ||
2.x |
Fix Released
|
Undecided
|
Stewart Smith |
Bug Description
*ib_crsr = NULL;
if (index_id > 0) {
err = ib_create_cursor(
ib_crsr, table, index_id, cursor-
}
if (ib_crsr != NULL) {
const ib_cursor_t* cursor;
cursor = *(ib_cursor_t**) ib_crsr;
********** if (cursor-
err = ib_cursor_
ut_a(err == DB_SUCCESS);
*ib_crsr = NULL;
}
}
of course, dereferencing NULL doesn't work so well.
Related branches
lp:~stewart/haildb/bug579934-open-index-by-name-segv
- Stewart Smith: Pending requested
-
Diff: 278 lines (+244/-1)3 files modifiedMakefile.am (+1/-0)
api/api0api.c (+5/-1)
tests/bug579934_open_index_by_name_segv.c (+238/-0)
Changed in haildb: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: api |
Changed in haildb: | |
assignee: | nobody → Stewart Smith (stewart-flamingspork) |
Changed in haildb: | |
status: | Confirmed → Fix Released |
Changed in haildb: | |
milestone: | none → release |
To post a comment you must log in.