File: bug426.patch

package info (click to toggle)
localsearch 3.8.2-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,176 kB
  • sloc: ansic: 59,401; python: 3,774; xml: 261; perl: 106; sh: 62; makefile: 54
file content (26 lines) | stat: -rw-r--r-- 945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Carlos Garnacho <carlosg@gnome.org>
Date: Thu, 15 Jan 2026 11:11:27 +0100
Subject: [PATCH] extractor: Bail out on 0-size frame for ID3v2.0 tags

The code handling ID3v2.3 and v2.4 tags already bailed out correctly, do
this too for 2.0 tags, avoids a possible NULL pointer dereference.

Closes: https://gitlab.gnome.org/GNOME/localsearch/-/issues/426

Origin: upstream, after 3.11.alpha
---
 src/tracker-extract/tracker-extract-mp3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index bf0b18c..1fcbb92 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -2583,6 +2583,7 @@ parse_id3v20 (const gchar          *data,
 			break;
 		} else if (csize == 0) {
 			g_debug ("[v20] Content size was 0, moving to next frame");
+			continue;
 		}
 
 		/* Early versions do not have unsynch per frame */