summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-28 13:09:04 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-10-28 13:45:18 (GMT)
commit79da7bb4739f9f63178ce5146702dce6b8feafb9 (patch)
tree5a885231046f4752e236c2d9663a4fc26cc193ea /doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp
parent22b223c31ff961f52f62eaf20aa571b71dfe3bb8 (diff)
downloadQt-79da7bb4739f9f63178ce5146702dce6b8feafb9.zip
Qt-79da7bb4739f9f63178ce5146702dce6b8feafb9.tar.gz
Qt-79da7bb4739f9f63178ce5146702dce6b8feafb9.tar.bz2
Don't try to mmap past EOF
On Mac OS, mmap would succeed, returning a valid pointer, but trying to read from it would result in a SIGBUS. By adding this check we commit to a safe cross-platform behavior users can depend on. Reviewed-by: Thiago Macieira
Diffstat (limited to 'doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp')
0 files changed, 0 insertions, 0 deletions