[New-bugs-announce] [issue17073] Integer overflow in sqlite module
Serhiy Storchaka
report at bugs.python.org
Tue Jan 29 18:01:48 CET 2013
New submission from Serhiy Storchaka:
The proposed patch fixes an integer overflow in such cases:
1. When an authorizer callback (registered with set_authorizer()) returns an integer which doesn't fit into C int. Now integers out of C int range interpreted as SQLITE_DENY (as any non-integer values).
2. When a callable used in create_collation() returns an integer which doesn't fit into C int. Now all Python integers work.
3. When Python integer doesn't fit into SQLite INTEGER. Now overflow detected and an exception raised.
4. Now sqlite module built even when HAVE_LONG_LONG is not defined.
----------
components: Extension Modules
messages: 180915
nosy: ghaering, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Integer overflow in sqlite module
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17073>
_______________________________________
More information about the New-bugs-announce
mailing list