Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/file/dist/magic/magdir fix recursion



details:   https://anonhg.NetBSD.org/src/rev/02eae5106b63
branches:  trunk
changeset: 805465:02eae5106b63
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 02 23:27:46 2015 +0000

description:
fix recursion

diffstat:

 external/bsd/file/dist/magic/magdir/jpeg |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 80ffff63f687 -r 02eae5106b63 external/bsd/file/dist/magic/magdir/jpeg
--- a/external/bsd/file/dist/magic/magdir/jpeg  Fri Jan 02 23:23:17 2015 +0000
+++ b/external/bsd/file/dist/magic/magdir/jpeg  Fri Jan 02 23:27:46 2015 +0000
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: jpeg,v 1.25 2015/01/02 16:56:50 christos Exp $
+# $File: jpeg,v 1.26 2015/01/02 22:40:27 christos Exp $
 # JPEG images
 # SunOS 5.5.1 had
 #
@@ -41,7 +41,8 @@
 # This uses recursion...
 0              name            jpeg_segment
 >0     beshort         0xFFFE
->>(2.S+2)      use                     jpeg_segment
+# Recursion handled by FFE0
+#>>(2.S+2)     use                     jpeg_segment
 >>2    pstring/HJ      x               \b, comment: "%s"
 
 >0     beshort         0xFFC0
@@ -70,6 +71,7 @@
 >>(2.S+2)      use                     jpeg_segment
 
 >0     beshort         0xFFE1          
+# Recursion handled by FFE0
 #>>(2.S+2)     use                     jpeg_segment
 >>4    string          Exif            \b, Exif Standard: [
 >>>10  indirect/r      x               
@@ -85,7 +87,8 @@
 # D9: End of image
 # Dn: Restart
 >0     beshort&0xFFD0  =0xFFD0
->>(2.S+2)      use                     jpeg_segment
+>>0    beshort&0xFFE0  !0xFFE0
+>>>(2.S+2)     use                     jpeg_segment
 
 #>0    beshort         x               unknown 0x%x
 #>>(2.S+2)     use                     jpeg_segment



Home | Main Index | Thread Index | Old Index