From 30519f5180679df4c350cf62faacb6cc5bbe4096 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:55:55 +0000 Subject: [PATCH 1/2] Update dependency beautifulsoup4 to v4.12.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2d2fe4fab9..4217d7a745 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ adba @ https://codeload.github.com/pymedusa/adba/tar.gz/37b0c74e76b40b3dbde29e71da75a1808eb121de babelfish==0.6.0 -beautifulsoup4==4.12.2 +beautifulsoup4==4.12.3 bencode.py==4.0.0 CacheControl==0.13.1 certifi==2023.7.22 From 8aa1f0dde336f19cf6d2b3ba8ac07d563244cfc8 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 18 Mar 2024 17:01:55 +0100 Subject: [PATCH 2/2] Update lib --- ext/bs4/__init__.py | 4 +- ext/bs4/builder/__init__.py | 13 ++- ext/bs4/builder/_html5lib.py | 4 +- ext/bs4/builder/_htmlparser.py | 2 +- ext/bs4/builder/_lxml.py | 4 +- ext/bs4/element.py | 7 +- ext/bs4/formatter.py | 4 +- ext/bs4/tests/__init__.py | 2 +- ...mized-bs4_fuzzer-4670634698080256.testcase | 1 + ...mized-bs4_fuzzer-5000587759190016.testcase | Bin 0 -> 15347 bytes ...mized-bs4_fuzzer-5270998950477824.testcase | Bin 0 -> 12 bytes ...mized-bs4_fuzzer-5375146639360000.testcase | 1 + ...mized-bs4_fuzzer-5492400320282624.testcase | Bin 0 -> 11502 bytes ...mized-bs4_fuzzer-6306874195312640.testcase | 1 + ...a2b26f13537b68d3794b0478a4090ee4a.testcase | Bin 0 -> 103 bytes ext/bs4/tests/test_fuzz.py | 95 +++++++++++++++++- ext/bs4/tests/test_tag.py | 13 +++ ext/readme.md | 2 +- 18 files changed, 134 insertions(+), 19 deletions(-) create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase create mode 100644 ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase create mode 100644 ext/bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase diff --git a/ext/bs4/__init__.py b/ext/bs4/__init__.py index 3d2ab09aac..d8ad5e1dc1 100644 --- a/ext/bs4/__init__.py +++ b/ext/bs4/__init__.py @@ -15,8 +15,8 @@ """ __author__ = "Leonard Richardson (leonardr@segfault.org)" -__version__ = "4.12.2" -__copyright__ = "Copyright (c) 2004-2023 Leonard Richardson" +__version__ = "4.12.3" +__copyright__ = "Copyright (c) 2004-2024 Leonard Richardson" # Use of this source code is governed by the MIT license. __license__ = "MIT" diff --git a/ext/bs4/builder/__init__.py b/ext/bs4/builder/__init__.py index 2e3974587e..ffb31fc25e 100644 --- a/ext/bs4/builder/__init__.py +++ b/ext/bs4/builder/__init__.py @@ -514,15 +514,19 @@ class DetectsXMLParsedAsHTML(object): XML_PREFIX_B = b' foo bar baz diff --git a/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase new file mode 100644 index 0000000000..4828f8a423 --- /dev/null +++ b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase @@ -0,0 +1 @@ + ÿÿ ÿ BVgZv$er@K!|sD^YeJSDOAWa&ttPlG6X?Atl{} z^qDpjS}5Y|WIWoTq(csczd4*??66BhVoGhy6y1ZDBgWIhQ~nf$4?LB=5tQo zxX3XIMJ!OhCjE@@G@nnHL!!ULItAw?J4Na|Tz{fnYNoHpCUhroxQ^Xm|6~3AZ`jNU z_1CN>Z8L2Ov5UvVto$ukPyf~8Z|ZG_z+Cw)}rtPVgJ$Y!^aQq_qB2x+d@%#VL&Ee zscL#D6CO7NUrf^%e&SnKww(HyG#lR3!%5nHqKHLiq!Uq%XT(ATAI~R!c+#u~ktD)W z#Z-lH42O%htTt3XpZZq_8E}9wb>zG-$Bf4}bwbGBM0e%#VflQ3>E%3$>n4SKSi0u< zER%m$TsEp5ifAh3ZBVWkB$KNF37662`3#lv#vffpN$8m zN~NsW&nsp9m$XI|Y?vkxR-@e#J2vfv={I9yD{8L>?bJ5jl{m^X>DgR>Pz4nzY55>9 zaJF$P4nM{r0N0v8sLEMw1+^QiLKN+(xQwxB!0bXrBv?Z{w${rqtoY4tO&Vk2ajs38ITfhY1|%rRV$pMf6PhuP>A~gb(by@6 zIYN?5j_g2E=LC?WXmn7m$gyJwVL_x)6E>WMna*0~7+ng6=am8TKe^U~eF_~XCRZkW z#PW{M(|AZY!jT)*wowa!XyA7C+-+hS%aO@_kcpK7$) zCWCD<@Kz>oC}@WX+hj0SGTJ5s9fT9I*)juIwVk>gO$LI&wIfvqDdYl5f{7)#xCTIF z2SI2-qp#%56T}6sGt3_+us`Vd;ONzB-y@~Ll>LlA@XZVW@(&R0YF literal 0 HcmV?d00001 diff --git a/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase new file mode 100644 index 0000000000000000000000000000000000000000..fd411427d765e9b17e1e6a015485a70632bb9554 GIT binary patch literal 12 TcmY$eDbjbbRX@cb^ZOhC75W5K literal 0 HcmV?d00001 diff --git a/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase new file mode 100644 index 0000000000..6248b2c54f --- /dev/null +++ b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase @@ -0,0 +1 @@ +ÿ >tet>< \ No newline at end of file diff --git a/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase new file mode 100644 index 0000000000000000000000000000000000000000..107da539fc15bd1664e35287ace9feda21cb5820 GIT binary patch literal 11502 zcmeHNy>HV%6gOf+VqhSEDxuawNKi#?;xtXg#SCTdK!q3y#cd3AnkG&P3ldWY7XAYy zCT0f2N_Q3{#Kh8pfq{iTAiQ_)?sEPrNt;$FI=4Ds&hO(s-o1P8XBP^E%c~a(bbUIR z>pt6&8VYYetR1|1@3DT}-suHUu57m=zZDhNUbKCCoqp6en~h@8f`8Us?*#40@z@;v zvWixx>qm8ug?`kSZAMZ199wmM)@|Fljl~QWU$J;93#i=Gnw~*BlHQ#|0?zbH*5 zb%|;A>ykT1x$T5V0o|~j6!-jKFyP&Q0fx?{e_SD_qO!^BSE=P1b3*t-8C14p{iSNc z2V3ItzI+T%ukbpRx(HH0EkaF-OQ}&>bS_;QQIeM5QcmbNA;V7VgCSi+Ka`)}b4~+u zIOf`Y|F-|bcGS`*xVc><+HeK=DuR7kbb;M|VG*n$UVC7lv5TH2TY-e=Ct3={xQ+R4 zwyZppvo(W_ZxdtZ*>Zz`2*oa8?n9GW;CglXx z<}63=pqMsNj5^H-eT8Y@E zP=-sP&U&-KBcEQhQFN;n4^K@xO-DQbCK=e7a4zp`HQ}5I=Oz-?nQ%^KGA3<_C5= zlRW%*ktfj|g`Fl))G`RHqfkU^=K$nAEVm4Oss1xm@?`cmF%gp;&h|LjDKbyFFvm(o zWHM`)cSw5|y>6c;zMKmSoRv`l zPeWS%fLuIZqeLOxJve;>FPgW-2pF5U#T0&+x5X53 zjQLv8ye*brDwwY#Fm>Y}L;QzdMc~-Z@auB}FN(+qLgC{?R>|o0jGKi4oeBP!uvKWO zmx{C@5I3Jxz--`-k(ePz3Jtudax^kV11};Vc?{4p4le@a3||N1H!?MkT}(oo#aihv D9d3o5 literal 0 HcmV?d00001 diff --git a/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase new file mode 100644 index 0000000000..b60a250cad --- /dev/null +++ b/ext/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase @@ -0,0 +1 @@ +- ÿÿ