summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSamanta Navarro <ferivoz@riseup.net>2021-07-26 13:36:28 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-26 13:36:28 +0300
commitd212aca070267ee742f22aab891960da4f552089 (patch)
tree7b041bc71a49a23ec384d378aef43a7dc379367f /.gitlab-ci.yml
parentaca77e84106c52c9cbb046b85a35fd806685ca84 (diff)
downloadapk-tools-d212aca070267ee742f22aab891960da4f552089.tar.gz
apk-tools-d212aca070267ee742f22aab891960da4f552089.tar.bz2
apk-tools-d212aca070267ee742f22aab891960da4f552089.tar.xz
apk-tools-d212aca070267ee742f22aab891960da4f552089.zip
db: fix installed db writing with long names
Packages containing files with path names longer than 1024 characters cannot fit into the buffer which is used to write "installed" database. This leads to bbuf being APK_BLOB_NULL in apk_db_write_fdb because apk_blob_push_blob notices the condition and correctly handles it. The problem occurs when arguments to apk_ostream_write are manually calculated by pointer arithmetics. Since bbuf.ptr is NULL in such a case, bbuf.ptr - buf leads to a huge size value while buf still points into the stack. fixes #10751 [TT: minor edit to commit and abbreviating the commit message]
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions