<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>203777</bug_id>
          
          <creation_ts>2007-12-30 14:49 0000</creation_ts>
          <short_desc>dev-libs/libcdio &lt; 0.78.2-r4 Buffer overflow via long filename in Joliet (CVE-2007-6613)</short_desc>
          <delta_ts>2008-01-20 00:44:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://savannah.gnu.org/bugs/?21910</bug_file_loc>
          <status_whiteboard>B2 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>devon.miller@verizon.net</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>arm@gentoo.org</cc>
    
    <cc>devon.miller@verizon.net</cc>
    
    <cc>flameeyes@gentoo.org</cc>
    
    <cc>lars@chaotika.org</cc>
    
    <cc>media-video@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2007-12-30 14:49:01 0000</bug_when>
            <thetext>dev-libs/libcdio-0.78.2 provides iso-info and cd-info both exhibit this vulnerability.

A properly formatted iso image can produce a coredump and may allow for malicious code injection.

Reproducible: Always

Steps to Reproduce:
1. mkdir -p tmp/dir1
2. echo file_with_really_really_long_silly_name_to_test_iso_info_buffer
3. mkisofs -J -R -volid My_Image -o test.iso tmp
4. iso-info -l test.iso

Actual Results:  
iso-info lists files and directories up to the ver long file name at which point it segfaults.

Expected Results:  
a listing of the directories

in src/iso-info.c, in function &quot;print_iso9660_recurse&quot; there is a block of code that begins:

 _CDIO_LIST_FOREACH (entnode, entlist)
    {
      iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode);
      char *psz_iso_name = p_statbuf-&gt;filename;
      char _fullname[4096] = { 0, };
      char translated_name[MAX_ISONAME+1];


      if (yep != p_statbuf-&gt;rr.b3_rock || 1 == opts.no_rock_ridge) {
        iso9660_name_translate_ext(psz_iso_name, translated_name,
                                   i_joliet_level);
        snprintf (_fullname, sizeof (_fullname), &quot;%s%s&quot;, psz_path,
                  translated_name);
      } else {
        snprintf (_fullname, sizeof (_fullname), &quot;%s%s&quot;, psz_path,
                  psz_iso_name);
     

I believe either the test &quot;yep != p_statbuf-&gt;rr.b3_rock&quot; is incorrect, or possibly the code in lib/iso9660 that sets &quot;b3_rock&quot;. The field &quot;b3_rock&quot; is an enumeration with the values &quot;nope&quot;, &quot;yep&quot;, &quot;dunno&quot;. The test would be valid if &quot;b3_rock&quot; was a boolean, but the additional &quot;dunno&quot; state causes a problem.

When the iso is created with the options given above, the value of &quot;b3_rock&quot; is &quot;dunno&quot; (integer 2). This causes the code to enter the &quot;iso9660_name_translate_ext&quot; which writes beyond the end of &quot;translated_name&quot; and corrupts the stack.

I have also submitted this upstream as bug #21910</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-30 15:30:31 0000</bug_when>
            <thetext>The upstream bug report is marked private, so I restricted this bug for now.
Please be aware that this vulnerability cannot be considered confidential anymore, as it was public in this bugtracker before.

Diego, please advise.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2007-12-30 16:36:02 0000</bug_when>
            <thetext>Sorry about that, I didn&apos;t see an obvious way to enter a private bug.

It&apos;s currently fixed in upstream CVS (iso-info.c:1.36, cd-info.c:1.150).

I&apos;m attaching a patch that fixes the current ebuild</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-30 17:07:05 0000</bug_when>
            <thetext>To enter restricted bugs, just click the &quot;Only users in all of the selected groups can view this bug:  Gentoo Security&quot; checkbox in the expert bug filing page.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-12-30 18:21:50 0000</bug_when>
            <thetext>I don&apos;t really know what to advise on such short notice as I didn&apos;t even know of this before. I can tell there are quite some changes in libcdio CVS, good ones mostly but I wouldn&apos;t fast track to stable a new release of it right now (and I say this because I did make some of the changes ;)), so I&apos;d suppose extracting the commit patch would probably be the best thing.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-30 18:43:09 0000</bug_when>
            <thetext>Created an attachment (id=139644)
libcdio-info-buffer.patch

Upstream committed patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-30 18:48:15 0000</bug_when>
            <thetext>Diego, sounds good -- find the patch attached. As it is already in the upstream CVS, please prepare an ebuild. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-12-30 19:20:51 0000</bug_when>
            <thetext>libcdio-0.78.2-r2 added to portage.. although I&apos;m not the libcdio ebuild maintainer since almost an year ;)

Please when you add arches add also mips so that they can keyword a recent version, thanks.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-30 19:35:58 0000</bug_when>
            <thetext>Arch Security Liaisons, please test and mark stable dev-libs/libcdio-0.78.2-r2.
Target keywords : &quot;alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86&quot;

CC&apos;ing current Liaisons:
  alpha : ferdy
  amd64 : welp
   hppa : jer
    ppc : dertobi123
  ppc64 : corsair
  sparc : fmccor
    x86 : opfer
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-12-30 21:53:04 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; Arch Security Liaisons, please test and mark stable dev-libs/libcdio-0.78.2-r2.
&gt; Target keywords : &quot;alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86&quot;

 Works on x86, but I am not able to commit to other directories than profiles at the moment...crappy lappy.  Anyway, anyone is free to fix it for x86.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-12-31 06:16:57 0000</bug_when>
            <thetext>Stable for HPPA and x86 (comment #9).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-12-31 14:30:42 0000</bug_when>
            <thetext>adding ranger because my machine is down.

ranger: comment #8</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ranger@gentoo.org</who>
            <bug_when>2007-12-31 16:05:47 0000</bug_when>
            <thetext>ppc64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>welp@gentoo.org</who>
            <bug_when>2007-12-31 17:40:27 0000</bug_when>
            <thetext>amd64 done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-12-31 20:52:26 0000</bug_when>
            <thetext>Rocky mailed this on libcdio-dev so it&apos;s now public. I&apos;ll mail the patch for this in a few minutes and then work toward a new release, although I still want 0.78.2-r2 as target stable ;)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-01 15:46:15 0000</bug_when>
            <thetext>public via http://lists.gnu.org/archive/html/libcdio-devel/2007-12/msg00009.html

Arches, please test and mark stable dev-libs/libcdio-0.78.2-r2.
Target keywords : &quot;alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86&quot;
Already stabled : &quot;amd64 hppa ppc x86&quot;
Missing keywords: &quot;alpha arm ia64 ppc64 sh sparc&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-01-01 15:57:43 0000</bug_when>
            <thetext>alpha/ia64/sparc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ranger@gentoo.org</who>
            <bug_when>2008-01-01 18:00:01 0000</bug_when>
            <thetext>ppc64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-01 22:06:02 0000</bug_when>
            <thetext>request filed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bannedit0@gmail.com</who>
            <bug_when>2008-01-03 03:34:49 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; dev-libs/libcdio-0.78.2 provides iso-info and cd-info both exhibit this
&gt; vulnerability.
&gt; 
&gt; A properly formatted iso image can produce a coredump and may allow for
&gt; malicious code injection.
&gt; 
&gt; Reproducible: Always
&gt; 
&gt; Steps to Reproduce:
&gt; 1. mkdir -p tmp/dir1
&gt; 2. echo file_with_really_really_long_silly_name_to_test_iso_info_buffer
&gt; 3. mkisofs -J -R -volid My_Image -o test.iso tmp
&gt; 4. iso-info -l test.iso
&gt; 
&gt; Actual Results:  
&gt; iso-info lists files and directories up to the ver long file name at which
&gt; point it segfaults.
&gt; 
&gt; Expected Results:  
&gt; a listing of the directories
&gt; 
&gt; in src/iso-info.c, in function &quot;print_iso9660_recurse&quot; there is a block of code
&gt; that begins:
&gt; 
&gt;  _CDIO_LIST_FOREACH (entnode, entlist)
&gt;     {
&gt;       iso9660_stat_t *p_statbuf = _cdio_list_node_data (entnode);
&gt;       char *psz_iso_name = p_statbuf-&gt;filename;
&gt;       char _fullname[4096] = { 0, };
&gt;       char translated_name[MAX_ISONAME+1];
&gt; 
&gt; 
&gt;       if (yep != p_statbuf-&gt;rr.b3_rock || 1 == opts.no_rock_ridge) {
&gt;         iso9660_name_translate_ext(psz_iso_name, translated_name,
&gt;                                    i_joliet_level);
&gt;         snprintf (_fullname, sizeof (_fullname), &quot;%s%s&quot;, psz_path,
&gt;                   translated_name);
&gt;       } else {
&gt;         snprintf (_fullname, sizeof (_fullname), &quot;%s%s&quot;, psz_path,
&gt;                   psz_iso_name);
&gt; 
&gt; 
&gt; I believe either the test &quot;yep != p_statbuf-&gt;rr.b3_rock&quot; is incorrect, or
&gt; possibly the code in lib/iso9660 that sets &quot;b3_rock&quot;. The field &quot;b3_rock&quot; is an
&gt; enumeration with the values &quot;nope&quot;, &quot;yep&quot;, &quot;dunno&quot;. The test would be valid if
&gt; &quot;b3_rock&quot; was a boolean, but the additional &quot;dunno&quot; state causes a problem.
&gt; 
&gt; When the iso is created with the options given above, the value of &quot;b3_rock&quot; is
&gt; &quot;dunno&quot; (integer 2). This causes the code to enter the
&gt; &quot;iso9660_name_translate_ext&quot; which writes beyond the end of &quot;translated_name&quot;
&gt; and corrupts the stack.
&gt; 
&gt; I have also submitted this upstream as bug #21910
&gt; 

(In reply to comment #5)
&gt; Created an attachment (id=139644) [edit]
&gt; libcdio-info-buffer.patch
&gt; 
&gt; Upstream committed patch
&gt; 

Shouldn&apos;t the +1 go outside the strlen bracets? Likely won&apos;t cause a problem now that things are on the heap but... worth mentioning I think

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2008-01-03 13:15:28 0000</bug_when>
            <thetext>
(In reply to comment #19)
&gt; &gt;       char translated_name[MAX_ISONAME+1];
&gt; &gt; 
&gt; 
&gt; (In reply to comment #5)
&gt; &gt; Created an attachment (id=139644) [edit]
&gt; &gt; libcdio-info-buffer.patch
&gt; &gt; 
&gt; &gt; Upstream committed patch
&gt; &gt; 
&gt; 
&gt; Shouldn&apos;t the +1 go outside the strlen bracets? Likely won&apos;t cause a problem
&gt; now that things are on the heap but... worth mentioning I think
&gt; 

Yes, good catch, As it is, the alloca&apos;d string may be 2 bytes too small.I have updated the upstream bug report with this information,</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2008-01-03 13:24:39 0000</bug_when>
            <thetext>Created an attachment (id=139967)
Buffer patch with correction for +1 in the wrong place

Moved the +1 outside the strlen call so the size is the length of the string plus 1, not the length of the string minus 1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-01-03 13:45:09 0000</bug_when>
            <thetext>I think it the original version was by design: the translation strings remove ;1 suffix from filenames, so strlen(foo+1) is equivalent to writing strlen(foo)-1, just making strlen faster (afair, strlen() is O(n)).
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2008-01-04 03:12:36 0000</bug_when>
            <thetext>Created an attachment (id=140011)
Upstream patch for misplaced +1

Patch from upstream cvs repo.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devon.miller@verizon.net</who>
            <bug_when>2008-01-04 03:14:49 0000</bug_when>
            <thetext>(In reply to comment #22)
&gt; I think it the original version was by design: the translation strings remove
&gt; ;1 suffix from filenames, so strlen(foo+1) is equivalent to writing
&gt; strlen(foo)-1, just making strlen faster (afair, strlen() is O(n)).

Negative. Upstream has confirmed and patched. See attachment #140011</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-04 03:35:57 0000</bug_when>
            <thetext>media-video, your ball.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-01-04 22:35:05 0000</bug_when>
            <thetext>*** Bug 204333 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-01-04 23:21:53 0000</bug_when>
            <thetext>Committed 0.78.2-r3 straight-to-stable for those who already stabled -r2.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-04 23:38:02 0000</bug_when>
            <thetext>Arches, please test and mark stable dev-libs/libcdio-0.78.2-r3.
Target keywords : &quot;alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86&quot;
Already stabled : &quot;alpha amd64 hppa ia64 ppc ppc64 sparc x86&quot;
Missing keywords: &quot;arm sh&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-08 22:56:27 0000</bug_when>
            <thetext>Stanislav Brabec from SUSE pointed out that allocating a larger string on the stack might easier lead to stack exhaustion, which can be shown by using some ten thousand files with long file names.
Not sure on whether upstream will apply his patches, but would you consider this a regression (media-video/Diego)?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-09 21:11:06 0000</bug_when>
            <thetext>Diego, do you consider this a regression? If not, we&apos;d glsa this now, otherwise we&apos;ll go stabling a new ebuild.

The patch has been committed to the upstream CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bannedit0@gmail.com</who>
            <bug_when>2008-01-10 22:57:55 0000</bug_when>
            <thetext>(In reply to comment #29)
&gt; Stanislav Brabec from SUSE pointed out that allocating a larger string on the
&gt; stack might easier lead to stack exhaustion, which can be shown by using some
&gt; ten thousand files with long file names.
&gt; Not sure on whether upstream will apply his patches, but would you consider
&gt; this a regression (media-video/Diego)?
&gt; 
I was looking at this scenario just recently. From the alloca() man page:

RETURN VALUE
       The  alloca()  function returns a pointer to the beginning of the allo-
       cated space.  If the allocation causes stack overflow, program behavior
       is undefined.

In some cases I think this could cause some major problems even further security issues. In the simplest case this will only cause stability issues. My suggestion would be to use the heap rather than alloca().
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2008-01-13 14:08:14 0000</bug_when>
            <thetext>Seems like we should go back to ebuild to get this fixed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-01-13 14:37:35 0000</bug_when>
            <thetext>Sorry I was out of order because of the cold/fever, I&apos;ll see to handle this today.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-01-13 16:17:59 0000</bug_when>
            <thetext>0.78.2-r4 and 0.79-r1 are in tree. I didn&apos;t commit straight to stable this time, just for safety.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2008-01-13 16:39:33 0000</bug_when>
            <thetext>Thx Diego. Arches please test and mark stable. Target keywords are:

libcdio-0.78.2-r4.ebuild:KEYWORDS=&quot;alpha amd64 arm hppa ia64 ppc ppc64 sh sparc ~sparc-fbsd x86 ~x86-fbsd&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ranger@gentoo.org</who>
            <bug_when>2008-01-13 17:56:54 0000</bug_when>
            <thetext>ppc64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2008-01-13 20:19:39 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2008-01-13 20:55:15 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-01-14 14:16:09 0000</bug_when>
            <thetext>Sparc stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-01-14 20:12:44 0000</bug_when>
            <thetext>alpha/ia64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-01-14 20:38:05 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-15 17:42:58 0000</bug_when>
            <thetext>amd64 stable, [glsa] again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-20 00:44:34 0000</bug_when>
            <thetext>GLSA 200801-08, thanks.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139644</attachid>
            <date>2007-12-30 18:43 0000</date>
            <desc>libcdio-info-buffer.patch</desc>
            <filename>libcdio-info-buffer.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTmF1ciBsaWJjZGlvLTAuNzguMi1vcmlnL3dvcmsvbGliY2Rpby0wLjc4LjIvc3JjL2Nk
LWluZm8uYyBsaWJjZGlvLTAuNzguMi93b3JrL2xpYmNkaW8tMC43OC4yL3NyYy9jZC1pbmZvLmMK
LS0tIGxpYmNkaW8tMC43OC4yLW9yaWcvd29yay9saWJjZGlvLTAuNzguMi9zcmMvY2QtaW5mby5j
CTIwMDYtMDMtMTcgMTQ6Mzc6MDguMDAwMDAwMDAwIC0wNTAwCisrKyBsaWJjZGlvLTAuNzguMi93
b3JrL2xpYmNkaW8tMC43OC4yL3NyYy9jZC1pbmZvLmMJMjAwNy0xMi0zMCAxMDo0OTo0MC4wMDAw
MDAwMDAgLTA1MDAKQEAgLTUzOSw3ICs1MzksNyBAQAogICAgICAgaXNvOTY2MF9zdGF0X3QgKnBf
c3RhdGJ1ZiA9IF9jZGlvX2xpc3Rfbm9kZV9kYXRhIChlbnRub2RlKTsKICAgICAgIGNoYXIgKnBz
el9pc29fbmFtZSA9IHBfc3RhdGJ1Zi0+ZmlsZW5hbWU7CiAgICAgICBjaGFyIF9mdWxsbmFtZVs0
MDk2XSA9IHsgMCwgfTsKLSAgICAgIGNoYXIgdHJhbnNsYXRlZF9uYW1lW01BWF9JU09OQU1FKzFd
OworICAgICAgY2hhciAqdHJhbnNsYXRlZF9uYW1lID0gKGNoYXIgKikgYWxsb2NhKHN0cmxlbihw
c3pfaXNvX25hbWUrMSkpOwogCiAgICAgICBpZiAoeWVwICE9IHBfc3RhdGJ1Zi0+cnIuYjNfcm9j
ayB8fCAxID09IG9wdHMubm9fcm9ja19yaWRnZSkgewogCWlzbzk2NjBfbmFtZV90cmFuc2xhdGVf
ZXh0KHBzel9pc29fbmFtZSwgdHJhbnNsYXRlZF9uYW1lLCAKZGlmZiAtTmF1ciBsaWJjZGlvLTAu
NzguMi1vcmlnL3dvcmsvbGliY2Rpby0wLjc4LjIvc3JjL2lzby1pbmZvLmMgbGliY2Rpby0wLjc4
LjIvd29yay9saWJjZGlvLTAuNzguMi9zcmMvaXNvLWluZm8uYwotLS0gbGliY2Rpby0wLjc4LjIt
b3JpZy93b3JrL2xpYmNkaW8tMC43OC4yL3NyYy9pc28taW5mby5jCTIwMDYtMDMtMTcgMTQ6Mzc6
MDguMDAwMDAwMDAwIC0wNTAwCisrKyBsaWJjZGlvLTAuNzguMi93b3JrL2xpYmNkaW8tMC43OC4y
L3NyYy9pc28taW5mby5jCTIwMDctMTItMzAgMTA6NDk6NTAuMDAwMDAwMDAwIC0wNTAwCkBAIC0y
MjQsNyArMjI0LDggQEAKICAgICAgIGlzbzk2NjBfc3RhdF90ICpwX3N0YXRidWYgPSBfY2Rpb19s
aXN0X25vZGVfZGF0YSAoZW50bm9kZSk7CiAgICAgICBjaGFyICpwc3pfaXNvX25hbWUgPSBwX3N0
YXRidWYtPmZpbGVuYW1lOwogICAgICAgY2hhciBfZnVsbG5hbWVbNDA5Nl0gPSB7IDAsIH07Ci0g
ICAgICBjaGFyIHRyYW5zbGF0ZWRfbmFtZVtNQVhfSVNPTkFNRSsxXTsKKyAgICAgIGNoYXIgKnRy
YW5zbGF0ZWRfbmFtZSA9IChjaGFyICopIGFsbG9jYShzdHJsZW4ocHN6X2lzb19uYW1lKzEpKTsK
KwogCiAgICAgICBpZiAoeWVwICE9IHBfc3RhdGJ1Zi0+cnIuYjNfcm9jayB8fCAxID09IG9wdHMu
bm9fcm9ja19yaWRnZSkgewogCWlzbzk2NjBfbmFtZV90cmFuc2xhdGVfZXh0KHBzel9pc29fbmFt
ZSwgdHJhbnNsYXRlZF9uYW1lLCAK
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139967</attachid>
            <date>2008-01-03 13:24 0000</date>
            <desc>Buffer patch with correction for +1 in the wrong place</desc>
            <filename>libcdio.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTmF1ciBsaWJjZGlvLTAuNzguMi1vcmlnL3dvcmsvbGliY2Rpby0wLjc4LjIvc3JjL2Nk
LWluZm8uYyBsaWJjZGlvLTAuNzguMi93b3JrL2xpYmNkaW8tMC43OC4yL3NyYy9jZC1pbmZvLmMK
LS0tIGxpYmNkaW8tMC43OC4yLW9yaWcvd29yay9saWJjZGlvLTAuNzguMi9zcmMvY2QtaW5mby5j
CTIwMDYtMDMtMTcgMTQ6Mzc6MDguMDAwMDAwMDAwIC0wNTAwCisrKyBsaWJjZGlvLTAuNzguMi93
b3JrL2xpYmNkaW8tMC43OC4yL3NyYy9jZC1pbmZvLmMJMjAwOC0wMS0wMyAwNzo1NToyNy4wMDAw
MDAwMDAgLTA1MDAKQEAgLTUzOSw3ICs1MzksNyBAQAogICAgICAgaXNvOTY2MF9zdGF0X3QgKnBf
c3RhdGJ1ZiA9IF9jZGlvX2xpc3Rfbm9kZV9kYXRhIChlbnRub2RlKTsKICAgICAgIGNoYXIgKnBz
el9pc29fbmFtZSA9IHBfc3RhdGJ1Zi0+ZmlsZW5hbWU7CiAgICAgICBjaGFyIF9mdWxsbmFtZVs0
MDk2XSA9IHsgMCwgfTsKLSAgICAgIGNoYXIgKnRyYW5zbGF0ZWRfbmFtZSA9IChjaGFyICopIGFs
bG9jYShzdHJsZW4ocHN6X2lzb19uYW1lKzEpKTsKKyAgICAgIGNoYXIgKnRyYW5zbGF0ZWRfbmFt
ZSA9IChjaGFyICopIGFsbG9jYShzdHJsZW4ocHN6X2lzb19uYW1lKSsxKTsKIAogICAgICAgaWYg
KHllcCAhPSBwX3N0YXRidWYtPnJyLmIzX3JvY2sgfHwgMSA9PSBvcHRzLm5vX3JvY2tfcmlkZ2Up
IHsKIAlpc285NjYwX25hbWVfdHJhbnNsYXRlX2V4dChwc3pfaXNvX25hbWUsIHRyYW5zbGF0ZWRf
bmFtZSwgCmRpZmYgLU5hdXIgbGliY2Rpby0wLjc4LjItb3JpZy93b3JrL2xpYmNkaW8tMC43OC4y
L3NyYy9pc28taW5mby5jIGxpYmNkaW8tMC43OC4yL3dvcmsvbGliY2Rpby0wLjc4LjIvc3JjL2lz
by1pbmZvLmMKLS0tIGxpYmNkaW8tMC43OC4yLW9yaWcvd29yay9saWJjZGlvLTAuNzguMi9zcmMv
aXNvLWluZm8uYwkyMDA2LTAzLTE3IDE0OjM3OjA4LjAwMDAwMDAwMCAtMDUwMAorKysgbGliY2Rp
by0wLjc4LjIvd29yay9saWJjZGlvLTAuNzguMi9zcmMvaXNvLWluZm8uYwkyMDA3LTEyLTMwIDEw
OjQ5OjUwLjAwMDAwMDAwMCAtMDUwMApAQCAtMjI0LDcgKzIyNCw3IEBACiAgICAgICBpc285NjYw
X3N0YXRfdCAqcF9zdGF0YnVmID0gX2NkaW9fbGlzdF9ub2RlX2RhdGEgKGVudG5vZGUpOwogICAg
ICAgY2hhciAqcHN6X2lzb19uYW1lID0gcF9zdGF0YnVmLT5maWxlbmFtZTsKICAgICAgIGNoYXIg
X2Z1bGxuYW1lWzQwOTZdID0geyAwLCB9OwotICAgICAgY2hhciAqdHJhbnNsYXRlZF9uYW1lID0g
KGNoYXIgKikgYWxsb2NhKHN0cmxlbihwc3pfaXNvX25hbWUrMSkpOworICAgICAgY2hhciAqdHJh
bnNsYXRlZF9uYW1lID0gKGNoYXIgKikgYWxsb2NhKHN0cmxlbihwc3pfaXNvX25hbWUpKzEpOwog
CiAKICAgICAgIGlmICh5ZXAgIT0gcF9zdGF0YnVmLT5yci5iM19yb2NrIHx8IDEgPT0gb3B0cy5u
b19yb2NrX3JpZGdlKSB7Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140011</attachid>
            <date>2008-01-04 03:12 0000</date>
            <desc>Upstream patch for misplaced +1</desc>
            <filename>libcdio-buffer-offbyone.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNkLWluZm8uYwkyMDA3LzEyLzMwIDE1OjA5OjAwCTEuMTUwCisrKyBjZC1pbmZvLmMJMjAw
OC8wMS8wMyAxNDozOToyOQkxLjE1MQpAQCAtMSw3ICsxLDcgQEAKIC8qCi0gICAgJElkOiBjZC1p
bmZvLmMsdiAxLjE1MCAyMDA3LzEyLzMwIDE1OjA5OjAwIHJvY2t5IEV4cCAkCisgICAgJElkOiBj
ZC1pbmZvLmMsdiAxLjE1MSAyMDA4LzAxLzAzIDE0OjM5OjI5IHJvY2t5IEV4cCAkCiAKLSAgICBD
b3B5cmlnaHQgKEMpIDIwMDMsIDIwMDQsIDIwMDUsIDIwMDcgUm9ja3kgQmVybnN0ZWluIDxyb2Nr
eUBnbnUub3JnPgorICAgIENvcHlyaWdodCAoQykgMjAwMywgMjAwNCwgMjAwNSwgMjAwNywgMjAw
OCBSb2NreSBCZXJuc3RlaW4gPHJvY2t5QGdudS5vcmc+CiAgICAgQ29weXJpZ2h0IChDKSAxOTk2
LCAxOTk3LCAxOTk4ICBHZXJkIEtub3JyIDxrcmF4ZWxAYnl0ZXNleC5vcmc+CiAgICAgICAgICBh
bmQgSGVpa28gRWnfZmVsZHQgPGhlaWtvQGhleGNvLmRlPgogCkBAIC01MzksNyArNTM5LDcgQEAK
ICAgICAgIGlzbzk2NjBfc3RhdF90ICpwX3N0YXRidWYgPSBfY2Rpb19saXN0X25vZGVfZGF0YSAo
ZW50bm9kZSk7CiAgICAgICBjaGFyICpwc3pfaXNvX25hbWUgPSBwX3N0YXRidWYtPmZpbGVuYW1l
OwogICAgICAgY2hhciBfZnVsbG5hbWVbNDA5Nl0gPSB7IDAsIH07Ci0gICAgICBjaGFyICp0cmFu
c2xhdGVkX25hbWUgPSAoY2hhciAqKSBhbGxvY2Eoc3RybGVuKHBzel9pc29fbmFtZSsxKSk7Cisg
ICAgICBjaGFyICp0cmFuc2xhdGVkX25hbWUgPSAoY2hhciAqKSBhbGxvY2Eoc3RybGVuKHBzel9p
c29fbmFtZSkrMSk7CiAKICAgICAgIGlmICh5ZXAgIT0gcF9zdGF0YnVmLT5yci5iM19yb2NrIHx8
IDEgPT0gb3B0cy5ub19yb2NrX3JpZGdlKSB7CiAJaXNvOTY2MF9uYW1lX3RyYW5zbGF0ZV9leHQo
cHN6X2lzb19uYW1lLCB0cmFuc2xhdGVkX25hbWUsIAotLS0gaXNvLWluZm8uYwkyMDA3LzEyLzMw
IDE1OjA5OjAwCTEuMzYKKysrIGlzby1pbmZvLmMJMjAwOC8wMS8wMyAxNDozOToyOQkxLjM3CkBA
IC0xLDUgKzEsNSBAQAogLyoKLSAgICAkSWQ6IGlzby1pbmZvLmMsdiAxLjM2IDIwMDcvMTIvMzAg
MTU6MDk6MDAgcm9ja3kgRXhwICQKKyAgICAkSWQ6IGlzby1pbmZvLmMsdiAxLjM3IDIwMDgvMDEv
MDMgMTQ6Mzk6Mjkgcm9ja3kgRXhwICQKIAogICAgIENvcHlyaWdodCAoQykgMjAwNCwgMjAwNSwg
MjAwNiBSb2NreSBCZXJuc3RlaW4gPHJvY2t5QHBhbml4LmNvbT4KIApAQCAtMjI0LDcgKzIyNCw3
IEBACiAgICAgICBpc285NjYwX3N0YXRfdCAqcF9zdGF0YnVmID0gX2NkaW9fbGlzdF9ub2RlX2Rh
dGEgKGVudG5vZGUpOwogICAgICAgY2hhciAqcHN6X2lzb19uYW1lID0gcF9zdGF0YnVmLT5maWxl
bmFtZTsKICAgICAgIGNoYXIgX2Z1bGxuYW1lWzQwOTZdID0geyAwLCB9OwotICAgICAgY2hhciAq
dHJhbnNsYXRlZF9uYW1lID0gKGNoYXIgKikgYWxsb2NhKHN0cmxlbihwc3pfaXNvX25hbWUrMSkp
OworICAgICAgY2hhciAqdHJhbnNsYXRlZF9uYW1lID0gKGNoYXIgKikgYWxsb2NhKHN0cmxlbihw
c3pfaXNvX25hbWUpKzEpOwogCiAgICAgICBpZiAoeWVwICE9IHBfc3RhdGJ1Zi0+cnIuYjNfcm9j
ayB8fCAxID09IG9wdHMubm9fcm9ja19yaWRnZSkgewogCWlzbzk2NjBfbmFtZV90cmFuc2xhdGVf
ZXh0KHBzel9pc29fbmFtZSwgdHJhbnNsYXRlZF9uYW1lLCAKCg==
</data>        

          </attachment>
    </bug>

</bugzilla>