]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
<comomon> fix buffer out-of-bounds in HTMLFormatter 60429/head
authorliubingrun <liubr1@chinatelecom.cn>
Thu, 24 Oct 2024 10:19:28 +0000 (06:19 -0400)
committerliubingrun <liubr1@chinatelecom.cn>
Thu, 24 Oct 2024 10:19:28 +0000 (06:19 -0400)
commit38601d0c9ea0b6fe32a27cebeb34ec785c7df676
tree5912549b4be81eb244b8b400d8cb75e9ec8a9bdb
parent207003c512396b1381abbf1a4929186c21827060
<comomon> fix buffer out-of-bounds in HTMLFormatter

Use boost small_vector to allocate more buffer when content is too
long to fit in the buffer pre-alloced

A unittest is also added.

Signed-off-by: liubingrun <liubr1@chinatelecom.cn>
src/common/HTMLFormatter.cc
src/test/common/CMakeLists.txt
src/test/common/test_htmlformatter.cc [new file with mode: 0644]