ReDos via excessive backtracking while parsing header values (bsc#1230227, CVE-2024-6232). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=425
16 lines
604 B
Bash
16 lines
604 B
Bash
#!/bin/bash
|
|
# This script is called automatically during autobuild checkin.
|
|
|
|
for spec in python-doc.spec python.spec; do
|
|
{ sed -n -e '1,/COMMON-PATCH-BEGIN/p' $spec
|
|
sed -n -e '/COMMON-PATCH-BEGIN/,/COMMON-PATCH-END/p' python-base.spec
|
|
sed -n -e '/COMMON-PATCH-END/,/COMMON-PREP-BEGIN/p' $spec
|
|
sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' python-base.spec
|
|
sed -n -e '/COMMON-PREP-END/,$p' $spec;
|
|
} | uniq > $spec.tmp && mv $spec.tmp $spec
|
|
done
|
|
|
|
# I really don't want to keep all three *.changes files separate
|
|
cp python-base.changes python.changes
|
|
cp python-base.changes python-doc.changes
|