diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-04 12:49:43 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-04 12:49:43 (GMT) |
commit | 018c0ebc7d7ffaa55bf5a80b2a8a0e3ee1ebcc7b (patch) | |
tree | aea8ef0d8ce7f466d049bbec5059f65e853b29b4 /doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp | |
parent | adc6d4776e6570fa6e6d5d2e4e40fe7eab0ebb99 (diff) | |
download | Qt-018c0ebc7d7ffaa55bf5a80b2a8a0e3ee1ebcc7b.zip Qt-018c0ebc7d7ffaa55bf5a80b2a8a0e3ee1ebcc7b.tar.gz Qt-018c0ebc7d7ffaa55bf5a80b2a8a0e3ee1ebcc7b.tar.bz2 |
Prevent excessive seeks in xbm detection
When auto-detecting an image type, the xbm handler would read
the entire file just to figure out that it's not an xbm. This patch
limits the read to maximum 4k and also breaks if line length >= 299.
Task-number: QT-4021
Reviewed-by: Robert Griebl
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp')
0 files changed, 0 insertions, 0 deletions