<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:04:04 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-6878] Potential NULL pointer dereference in top_trans_stop</title>
                <link>https://jira.whamcloud.com/browse/LU-6878</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;top_trans_stop has this code:&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;                rc = dt_trans_stop(env, master_st-&amp;gt;st_dt, master_st-&amp;gt;st_sub_th);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc &amp;lt; 0) {
                        th-&amp;gt;th_result = rc;
                        GOTO(stop_other_trans, rc);
                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (tur != NULL &amp;amp;&amp;amp; tur-&amp;gt;tur_update_records != NULL) {
                        struct llog_update_record *lur;

                        lur = tur-&amp;gt;tur_update_records;
....
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (write_updates) {
                struct llog_update_record *lur;

                /* Stop callback of master will add more updates and also update
                 * master transno, so merge the parameters and updates into one
                 * buffer again */
                rc = prepare_writing_updates(env, tmt);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc &amp;lt; 0) {
                        CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: prepare updates failed: rc = %d\n&quot;&lt;/span&gt;,
                               master_dev-&amp;gt;dd_lu_dev.ld_obd-&amp;gt;obd_name, rc);
                        th-&amp;gt;th_result = rc;
                        GOTO(stop_other_trans, rc);
                }
                lur = tur-&amp;gt;tur_update_records;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So in a very similar bits one makes sure tur is not NULL and the other takes it for granted which is a bit strange and probably hides a bug.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31139">LU-6878</key>
            <summary>Potential NULL pointer dereference in top_trans_stop</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="6">Not a Bug</resolution>
                                        <assignee username="di.wang">Di Wang</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Sun, 19 Jul 2015 03:17:38 +0000</created>
                <updated>Sat, 1 Aug 2015 00:16:52 +0000</updated>
                            <resolved>Sat, 1 Aug 2015 00:16:52 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="121650" author="di.wang" created="Mon, 20 Jul 2015 03:26:41 +0000"  >&lt;p&gt;You mean tur might be NULL, but if tur is NULL, then write_updates will be false.  Do I miss sth here?&lt;/p&gt;</comment>
                            <comment id="121711" author="jgmitter" created="Mon, 20 Jul 2015 17:29:00 +0000"  >&lt;p&gt;Assigning to Di while Oleg investigates the last comment for further guidance.&lt;/p&gt;</comment>
                            <comment id="122930" author="green" created="Sat, 1 Aug 2015 00:16:52 +0000"  >&lt;p&gt;I guess this is indeed a false positive, so resolving.&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|hzxiiv:</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>