<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:37:40 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-10728] lnet/utils/lnetconfig/liblnetconfig.c uses sizeof on pointers</title>
                <link>https://jira.whamcloud.com/browse/LU-10728</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; lustre_lnet_resolve_ip2nets_rule(struct lustre_lnet_ip2nets *ip2nets,
					    lnet_nid_t **nids, __u32 *nnids,
					    &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *err_str, size_t str_len)
{
...
	rc = lustre_lnet_intf2nids(&amp;amp;ip2nets-&amp;gt;ip2nets_net, nids, nnids,
				   err_str, sizeof(err_str));
...
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="50969">LU-10728</key>
            <summary>lnet/utils/lnetconfig/liblnetconfig.c uses sizeof on pointers</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="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="cbordage">Cyril Bordage</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Feb 2018 14:04:50 +0000</created>
                <updated>Tue, 3 Nov 2020 05:13:06 +0000</updated>
                            <resolved>Tue, 3 Nov 2020 05:13:06 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="221798" author="jhammond" created="Tue, 27 Feb 2018 14:15:36 +0000"  >&lt;p&gt;There are also several places where we do&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; err_str[LNET_MAX_STR_LEN];
snprintf(err_str, sizeof(err_str), &lt;span class=&quot;code-quote&quot;&gt;&quot;\&quot;&lt;/span&gt;success\&quot;&quot;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;instead of just&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; err_str[LNET_MAX_STR_LEN] = &lt;span class=&quot;code-quote&quot;&gt;&quot;\&quot;&lt;/span&gt;success\&quot;&quot;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and where we explicitly &apos;\0&apos; terminate a buffer after calling snprintf():&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;snprintf(err_str, str_len,
			 &lt;span class=&quot;code-quote&quot;&gt;&quot;\&quot;&lt;/span&gt;failed to get &lt;span class=&quot;code-keyword&quot;&gt;interface&lt;/span&gt; addresses: %d\&quot;&quot;, -errno);
err_str[str_len - 1] = &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</comment>
                            <comment id="282317" author="jhammond" created="Thu, 15 Oct 2020 14:01:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=cbordage&quot; class=&quot;user-hover&quot; rel=&quot;cbordage&quot;&gt;cbordage&lt;/a&gt;, could you take a look?&lt;/p&gt;</comment>
                            <comment id="282424" author="gerrit" created="Fri, 16 Oct 2020 13:40:06 +0000"  >&lt;p&gt;Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40268&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40268&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10728&quot; title=&quot;lnet/utils/lnetconfig/liblnetconfig.c uses sizeof on pointers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10728&quot;&gt;&lt;del&gt;LU-10728&lt;/del&gt;&lt;/a&gt; utils: fix str length in error string&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 598822099fa8aa747fb65a274387c5909703dc61&lt;/p&gt;</comment>
                            <comment id="284081" author="gerrit" created="Tue, 3 Nov 2020 03:40:34 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40268/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40268/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10728&quot; title=&quot;lnet/utils/lnetconfig/liblnetconfig.c uses sizeof on pointers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10728&quot;&gt;&lt;del&gt;LU-10728&lt;/del&gt;&lt;/a&gt; utils: fix str length in error string&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4b2a760fc4747c748ce460289854b76ed17b9ca2&lt;/p&gt;</comment>
                            <comment id="284099" author="pjones" created="Tue, 3 Nov 2020 05:13:06 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                    <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|hzzten:</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>