<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>49180</bug_id>
          
          <creation_ts>2024-01-25 12:41:27 +0300</creation_ts>
          <short_desc>incorrect output with -i flag</short_desc>
          <delta_ts>2024-01-25 18:03:51 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xxd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://github.com/vim/vim/issues/13876</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Bolshakov">sbolshakov</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>admsasha</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>240614</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2024-01-25 12:41:27 +0300</bug_when>
    <thetext>$ date &gt; file  
$ rpmquery xxd
xxd-9.0.2136-alt1.aarch64
$ xxd -i file 
unsigned char file[] = {
  0x54, 0x68, 0x75, 0x20, 0x4a, 0x61, 0x6e, 0x20, 0x32, 0x35, 0x20, 0x31,
  0x32, 0x3a, 0x33, 0x31, 0x3a, 0x30, 0x33, 0x20, 0x4d, 0x53, 0x4b, 0x20,
  0x32, 0x30, 0x32, 0x34, 0x0a
};
unsigned int file_len = 29;

(обновляемся ...)

$ rpmquery xxd            
xxd-9.1.0050-alt1.aarch64
$ xxd -i file 
unsigned char file[] = {
  0x54, 0x68, 0x75, 0x20, 0x4a, 0x61, 0x6e, 0x20, 0x32, 0x35, 0x20, 0x31,
  0x32, 0x3a, 0x33, 0x31, 0x3a, 0x30, 0x33, 0x20, 0x4d, 0x53, 0x4b, 0x20,
  0x32, 0x30, 0x32, 0x34, 0x0a
};
size_t file_len = 29;

как видно, file_len из unsigned_int стал size_t -- без включения stddef.h,
и компиляция такого сгенерированного файла заканчивается неудачей.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240646</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-01-25 18:03:51 +0300</bug_when>
    <thetext>vim-4:9.1.0050-alt2 -&gt; sisyphus:

 Thu Jan 25 2024 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 4:9.1.0050-alt2
 - Reverted upstream commit &quot;patch 9.1.0041: xxd -i may generate incorrect C
   statements&quot; to fix regression in xxd -i output (ALT#49180).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>