<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:29:39 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-9830] string truncation from snprintf in libcfs/util/parser.c::Parser_list_commands()</title>
                <link>https://jira.whamcloud.com/browse/LU-9830</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Modern gcc warns that:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;util/parser.c: In function &#1041;&#9472;&#8804;Parser_list_commands&#1041;&#9472;&#8805;:
util/parser.c:575:25: error: &#1041;&#9472;&#8804;%2d&#1041;&#9472;&#8805; directive output may be truncated writing between 2 and 10 bytes into a region of size 4 [-Werror=format-truncation=]
    snprintf(fmt, 6, &quot;%%-%2ds&quot;, char_max - len);
                         ^~~
util/parser.c:575:21: note: directive argument in the range [1, 2147483647]
    snprintf(fmt, 6, &quot;%%-%2ds&quot;, char_max - len);
                     ^~~~~~~~~
util/parser.c:575:4: note: &#1041;&#9472;&#8804;snprintf&#1041;&#9472;&#8805; output between 6 and 14 bytes into a destination of size 6
    snprintf(fmt, 6, &quot;%%-%2ds&quot;, char_max - len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [autoMakefile:669: libcfsutil_a-parser.o] Error 1
make[4]: Leaving directory &apos;/home/green/smt/git/lustre-release/libcfs/libcfs&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;there&apos;s some funky business going on with presumed column width so I guess we cannot just increase 6 to 14?&lt;/p&gt;</description>
                <environment></environment>
        <key id="47656">LU-9830</key>
            <summary>string truncation from snprintf in libcfs/util/parser.c::Parser_list_commands()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Aug 2017 15:48:14 +0000</created>
                <updated>Fri, 21 Jan 2022 02:00:57 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="232425" author="jhammond" created="Wed, 22 Aug 2018 14:39:33 +0000"  >&lt;p&gt;This does cause some commands names to be truncated in the output of &lt;tt&gt;lctl --list-commands&lt;/tt&gt;:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;o:~# lctl --list-commands
...
help                lustre_build_versio exit                quit                
...
changelog_register  changelog_deregiste 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="323412" author="adilger" created="Fri, 21 Jan 2022 02:00:57 +0000"  >&lt;p&gt;The compiler problems were fixed with patch &lt;a href=&quot;https://review.whamcloud.com/35384&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35384&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6142&quot; title=&quot;Enforce Linux kernel coding style in all code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6142&quot;&gt;LU-6142&lt;/a&gt; util: Fix style issues for parser.c&lt;/tt&gt;&quot;, but there are still a couple of commands truncated by one character - &quot;&lt;tt&gt;changelog_deregister&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;lustre_build_version&lt;/tt&gt;&quot;.  The latter could likely be removed - it was superseded in v2_6_50_0-16-g593b6ab6d219 with &quot;&lt;tt&gt;lctl get_param version&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;--version&lt;/tt&gt;&quot;, but &quot;&lt;tt&gt;changelog_deregister&lt;/tt&gt;&quot; can&apos;t.&lt;/p&gt;

&lt;p&gt;It would probably make sense to add a check to prevent new commands &amp;gt; 19 characters in length from being added.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28279">LU-6142</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzhs7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>