Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
python-magic.3341
0001-off-by-one-in-out-of-bounds-calculations-J...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-off-by-one-in-out-of-bounds-calculations-Jan-Kaluza.patch of Package python-magic.3341
From 70c65d2e1841491f59168db1f905e8b14083fb1c Mon Sep 17 00:00:00 2001 From: Christos Zoulas <christos@zoulas.com> Date: Tue, 4 Mar 2014 17:42:19 +0000 Subject: [PATCH] off by one in out of bounds calculations (Jan Kaluza) --- src/softmagic.c | 4 +- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git src/softmagic.c src/softmagic.c index 170de95..5ed3998 100644 --- src/softmagic.c +++ src/softmagic.c @@ -72,7 +72,7 @@ private void cvt_16(union VALUETYPE *, const struct magic *); private void cvt_32(union VALUETYPE *, const struct magic *); private void cvt_64(union VALUETYPE *, const struct magic *); -#define OFFSET_OOB(n, o, i) ((n) < (o) || (i) >= ((n) - (o))) +#define OFFSET_OOB(n, o, i) ((n) < (o) || (i) > ((n) - (o))) /* * softmagic - lookup one file in parsed, in-memory copy of database * Passed the name and FILE * of one file to be typed. -- 1.7.9.2
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