summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-04-02 12:22:25 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2021-04-02 12:22:25 +0200
commit1b954e4120c1565134e9d81296e4fec3ce8e7a7c (patch)
tree5ac937c958f19da659ad4bb93610b666ecf66615 /doc
parent646c834492a419a96b4032c230e842d27f87e997 (diff)
downloadapk-tools-1b954e4120c1565134e9d81296e4fec3ce8e7a7c.tar.gz
apk-tools-1b954e4120c1565134e9d81296e4fec3ce8e7a7c.tar.bz2
apk-tools-1b954e4120c1565134e9d81296e4fec3ce8e7a7c.tar.xz
apk-tools-1b954e4120c1565134e9d81296e4fec3ce8e7a7c.zip
Fix segfault in log_internal if prefix is APK_OUT_LOG_ONLY
This commit fixes a regression which was introduced in changeset 646c834492a419a96b4032c230e842d27f87e997. If apk_out_fmt() is called while out->log is set and prefix is set to APK_OUT_LOG_ONLY, then apk_out_fmt() would pass this prefix to log_internal() which would, in turn, attempt to write it to standard out using fprintf(). Unfortunately, doing so wont work as intended if prefix is ((char*)-1) (i.e. APK_OUT_LOG_ONLY) and will cause a segmentation fault instead. This commit fixes this segmentation fault by not printing the prefix in log_internal() if it is either NULL or APK_OUT_LOG_ONLY.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions