diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-01 14:10:08 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-03 22:18:49 +0000 |
commit | 51e9e697fa0cda4291735c2f548dedab14b2dd01 (patch) | |
tree | 1e2f49684e75767f9186635a8e1cb8bdf8723540 /addressbook | |
parent | 81353faf4d5450031335ed414ff9e46a3fa460c2 (diff) | |
download | evolution-data-server-51e9e697fa0cda4291735c2f548dedab14b2dd01.tar.gz |
addressbook: Strengthen an assertion to avoid negative bit shifts
This should never happen in practice, but it is good to be completely
explicit in the assertion.
Follow up to commit 10d55d18.
Coverity issue: #1250458
https://bugzilla.gnome.org/show_bug.cgi?id=730378
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/libedata-book/e-book-sqlite.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c index 905dec7c1..49df7ee41 100644 --- a/addressbook/libedata-book/e-book-sqlite.c +++ b/addressbook/libedata-book/e-book-sqlite.c @@ -5576,6 +5576,7 @@ ebsql_generate_autocomplete_query (EBookSqlite *ebsql, continue; aux_index = summary_field_get_index (ebsql, test->field_id); + g_warn_if_fail (aux_index >= 0 && aux_index < EBSQL_MAX_SUMMARY_FIELDS); context->aux_mask = (1 << aux_index); context->left_join_mask = 0; |