diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2024-04-09 11:18:01 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2024-04-09 11:32:49 +0900 |
commit | 32b5d2a63601faf3d42480e65a348a98347a736c (patch) | |
tree | b65eefb900416b80723bf66210ebef7fa7857db5 | |
parent | cc1bf21f7fcef8cc41feec3eb56d9061429a1923 (diff) | |
download | doxygen-32b5d2a63601faf3d42480e65a348a98347a736c.tar.gz doxygen-32b5d2a63601faf3d42480e65a348a98347a736c.tar.bz2 doxygen-32b5d2a63601faf3d42480e65a348a98347a736c.zip |
[CVE-2018-14553] Fix potential NULL pointer dereference in gdImageClone()tizen_9.0_m2_releaseaccepted/tizen/base/x/20240416.082023accepted/tizen/base/toolchain/20240424.234645accepted/tizen/base/asan/20240422.014824accepted/tizen/base/20240415.081831accepted/tizen/9.0/base/20241030.075319tizen_basetizen_9.0_baseaccepted/tizen_base_xaccepted/tizen_base_toolchainaccepted/tizen_base_asanaccepted/tizen_baseaccepted/tizen_9.0_base
https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f
Change-Id: Ie7339ccad3475ca5e5ee2535217f1474b88108e7
-rw-r--r-- | deps/libmscgen/gd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/deps/libmscgen/gd.c b/deps/libmscgen/gd.c index a9a8aa6..7176783 100644 --- a/deps/libmscgen/gd.c +++ b/deps/libmscgen/gd.c @@ -2855,14 +2855,6 @@ BGD_DECLARE(gdImagePtr) gdImageClone (gdImagePtr src) { } } - if (src->styleLength > 0) { - dst->styleLength = src->styleLength; - dst->stylePos = src->stylePos; - for (i = 0; i < src->styleLength; i++) { - dst->style[i] = src->style[i]; - } - } - dst->interlace = src->interlace; dst->alphaBlendingFlag = src->alphaBlendingFlag; @@ -2897,6 +2889,7 @@ BGD_DECLARE(gdImagePtr) gdImageClone (gdImagePtr src) { if (src->style) { gdImageSetStyle(dst, src->style, src->styleLength); + dst->stylePos = src->stylePos; } for (i = 0; i < gdMaxColors; i++) { |