<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:56:17 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-12861] Add and use scnprintf() where using snprintf() is not handling return correctly	</title>
                <link>https://jira.whamcloud.com/browse/LU-12861</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There are a few locations where the return value of snprintf() is being used and not checked against the maximum number of characters in the buffer.&lt;/p&gt;

&lt;p&gt;scnprintf() is nearly identical to snprintf() except the return value for scnprintf() is the number of characters written to the buffer (not including the terminating null).&lt;/p&gt;

&lt;p&gt;Where as snprintf() returns the number of characters that would have been written to the buffer, if there was no restriction. Alternatively stated the return value is the size of buffer needed to hold the complete result (not including the terminating null).&lt;/p&gt;

&lt;p&gt;Add scnprintf() wrapper around snprintf() and start using it.&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;%C2%A0&quot;&gt;&lt;/a&gt;&#160;&lt;/h2&gt;</description>
                <environment></environment>
        <key id="57155">LU-12861</key>
            <summary>Add and use scnprintf() where using snprintf() is not handling return correctly	</summary>
                <type id="3" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11318&amp;avatarType=issuetype">Task</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="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Oct 2019 05:17:46 +0000</created>
                <updated>Tue, 25 Feb 2020 13:57:48 +0000</updated>
                            <resolved>Tue, 25 Feb 2020 13:57:48 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="256397" author="gerrit" created="Tue, 15 Oct 2019 05:19:47 +0000"  >&lt;p&gt;Shaun Tancheff (stancheff@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36453&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36453&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: provide an scnprintf and start using it&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: abd5852355901e1da2e7eb85ca0481c36eab1235&lt;/p&gt;</comment>
                            <comment id="258787" author="simmonsja" created="Mon, 25 Nov 2019 18:40:39 +0000"  >&lt;p&gt;Their are some uses of sprintf for sysfs file handle that needs to be replaced by scnprintf() so don&apos;t close once this lands.&lt;/p&gt;</comment>
                            <comment id="259000" author="gerrit" created="Sat, 30 Nov 2019 23:17:07 +0000"  >&lt;p&gt;Shaun Tancheff (stancheff@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36900&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36900&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: Cleanup libcfs_debug_msg use of snprintf&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0aa910a8ad97105aeabf9ac003345aac836d6c65&lt;/p&gt;</comment>
                            <comment id="259001" author="gerrit" created="Sat, 30 Nov 2019 23:34:39 +0000"  >&lt;p&gt;Shaun Tancheff (stancheff@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36901&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36901&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: Cleanup libcfs_debug_msg use of snprintf&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a28c23ab700dfbacc053d025c372a62577179eb4&lt;/p&gt;</comment>
                            <comment id="260022" author="gerrit" created="Tue, 17 Dec 2019 04:23:49 +0000"  >&lt;p&gt;Shaun Tancheff (stancheff@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37046&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37046&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: Cleanup use of bare printk&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 22a83a65e67a735b227aec9aa24217dd0dcea3f1&lt;/p&gt;</comment>
                            <comment id="260190" author="gerrit" created="Fri, 20 Dec 2019 03:26:39 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/36453/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36453/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: provide an scnprintf and start using it&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 998a494fa9a46b92d4c7fb3485a0faeb78beb2cd&lt;/p&gt;</comment>
                            <comment id="261990" author="gerrit" created="Tue, 28 Jan 2020 06:04:17 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37046/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37046/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: Cleanup use of bare printk&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b4c8a5180dec2db5bda7c07b8dd3cfbd4f4c1e3f&lt;/p&gt;</comment>
                            <comment id="263964" author="gerrit" created="Tue, 25 Feb 2020 05:51:23 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/36901/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36901/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12861&quot; title=&quot;Add and use scnprintf() where using snprintf() is not handling return correctly	&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12861&quot;&gt;&lt;del&gt;LU-12861&lt;/del&gt;&lt;/a&gt; libcfs: Cleanup libcfs_debug_msg use of snprintf&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4ec32fe7c92dce7f6699d36cebac19d8d1abf9e0&lt;/p&gt;</comment>
                            <comment id="264014" author="pjones" created="Tue, 25 Feb 2020 13:57:48 +0000"  >&lt;p&gt;It looks like all existing patches tracked under this ticket have landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="45446">LU-9325</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|i00o1j:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>