Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
libsndfile-progs.4624
0002-src-id3.c-Improve-error-handling.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-src-id3.c-Improve-error-handling.patch of Package libsndfile-progs.4624
From f457b7b5ecfe91697ed01cfc825772c4d8de1236 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo <erikd@mega-nerd.com> Date: Sun, 26 Mar 2017 11:41:11 +1100 Subject: [PATCH] src/id3.c : Improve error handling --- src/id3.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/src/id3.c +++ b/src/id3.c @@ -1,5 +1,5 @@ /* -** Copyright (C) 2010-2011 Erik de Castro Lopo <erikd@mega-nerd.com> +** Copyright (C) 2010-2017 Erik de Castro Lopo <erikd@mega-nerd.com> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as published by @@ -48,9 +48,11 @@ id3_skip (SF_PRIVATE * psf) /* Calculate new file offset and position ourselves there. */ psf->fileoffset += offset + 10 ; - psf_binheader_readf (psf, "p", psf->fileoffset) ; - return 1 ; + if (psf->fileoffset < psf->filelength) + { psf_binheader_readf (psf, "p", psf->fileoffset) ; + return 1 ; + } ; } ; return 0 ;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor