diff --git a/fix-FORTIFY_SOURCE3.patch b/fix-FORTIFY_SOURCE3.patch deleted file mode 100644 index 42469e5..0000000 --- a/fix-FORTIFY_SOURCE3.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 03ea6915c99b9ca0d8ac576e4cfd1c2eca62338c Mon Sep 17 00:00:00 2001 -From: Martin Liska -Date: Mon, 11 Apr 2022 09:14:28 +0200 -Subject: [PATCH] Fix buffer overflow detected with -D_FORTIFY_SOURCE=3. - -Correctly set maximum buffer length for snprintf call. -Fixes: #5. ---- - src/sratom.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/src/sratom.c b/src/sratom.c -index 692257d..b6ba7ed 100644 ---- a/src/sratom.c -+++ b/src/sratom.c -@@ -334,10 +334,11 @@ sratom_write(Sratom* sratom, - new_node = true; - datatype = serd_node_from_string(SERD_URI, USTR(LV2_MIDI__MidiEvent)); - -- uint8_t* str = (uint8_t*)calloc(size * 2 + 1, 1); -+ size_t strlen = size * 2 + 1; -+ uint8_t* str = (uint8_t*)calloc(strlen, 1); - for (uint32_t i = 0; i < size; ++i) { - snprintf((char*)str + (2 * i), -- size * 2 + 1, -+ strlen - (2 * i), - "%02X", - (unsigned)*((const uint8_t*)body + i)); - } diff --git a/sratom-0.6.10.tar.bz2 b/sratom-0.6.10.tar.bz2 new file mode 100644 index 0000000..5f7ac46 --- /dev/null +++ b/sratom-0.6.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5951c0d7f0618672628295536a271d61c55ef0dab33ba9fc5767ed4db0a634d +size 327047 diff --git a/sratom-0.6.8.tar.bz2 b/sratom-0.6.8.tar.bz2 deleted file mode 100644 index 631be12..0000000 --- a/sratom-0.6.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3acb32b1adc5a2b7facdade2e0818bcd6c71f23f84a1ebc17815bb7a0d2d02df -size 327027 diff --git a/sratom.changes b/sratom.changes index be8e6cd..b96c713 100644 --- a/sratom.changes +++ b/sratom.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Jun 18 14:29:31 UTC 2022 - Dirk Müller + +- update to 0.6.10: + * Fix documentation installation directory + * Fix potential blank node ID truncation +- drop fix-FORTIFY_SOURCE3.patch: obsolete + ------------------------------------------------------------------- Tue Apr 12 08:35:33 UTC 2022 - Martin Liška diff --git a/sratom.spec b/sratom.spec index 7c1501f..156704c 100644 --- a/sratom.spec +++ b/sratom.spec @@ -18,15 +18,14 @@ %define sover 0 Name: sratom -Version: 0.6.8 +Version: 0.6.10 Release: 0 Summary: A library for serialising LV2 atoms to/from RDF License: ISC Group: Development/Libraries/C and C++ -URL: http://drobilla.net/software/sratom/ -Source0: http://download.drobilla.net/sratom-%{version}.tar.bz2 +URL: https://drobilla.net/software/sratom.html +Source0: https://download.drobilla.net/sratom-%{version}.tar.bz2 Source1: baselibs.conf -Patch0: fix-FORTIFY_SOURCE3.patch BuildRequires: doxygen BuildRequires: graphviz BuildRequires: pkgconfig