<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99226/ncs-mesh-division-by-0-if-ctl-temperature-range-matches</link><description>There is division by zero crash in nRF Connect SDK 2.2.0 (2.3.0 also). 
 Crash occurs if Light Temperature range min and max matches in the Light CTL server. 
 Problem is located in temp_to_lvl function in &amp;quot;nrf\subsys\bluetooth\mesh\light_ctl_internal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Aug 2023 11:20:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99226/ncs-mesh-division-by-0-if-ctl-temperature-range-matches" /><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/441832?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 11:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6aa812a-b04f-4b22-8dbf-b4a0796c7f55</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m so this was delayed for so long.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you take a look at:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/mesh/light_ctl_internal.h"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/mesh/light_ctl_internal.h&lt;/a&gt;&amp;nbsp;&lt;br /&gt;you can see changes to the temp_to_lvl function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br,&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/432215?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87721faa-1a49-4179-b152-985cf6681766</guid><dc:creator>mesh777</dc:creator><description>&lt;p&gt;Hi Joakim. Is there any news upon this case? It is almost two months since I reported the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/430629?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 07:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:640e242d-b91a-4749-aef1-9462971ba8a6</guid><dc:creator>mesh777</dc:creator><description>&lt;p&gt;This issue leads to system vulnerability, if somebody sets ranges to the same value, device crashes on boot all the time as values are saved persistently. Therefore we expect it to be fixed as soon as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/429255?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8dac7f-19b1-4067-99b1-91e36ac4e533</guid><dc:creator>mesh777</dc:creator><description>&lt;p&gt;I have not checked if crash persists&amp;nbsp;on 2.3.0 and 2.4.0, but&amp;nbsp;function where crash was observed&amp;nbsp;(&lt;span&gt;temp_to_lvl) &lt;/span&gt; on 2.2.0 is&amp;nbsp;not changed &lt;span&gt;on the latest source code too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/mesh/light_ctl_internal.h"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/mesh/light_ctl_internal.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/429236?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 10:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b58f6e6-2815-458e-8201-b7e7068a0af4</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I haven&amp;#39;t heard anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can check if we have a timeline for a potential fix, or if we have something we can share.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you check if there was any changes in the latest version of NCS (2.4.0)?&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/428637?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 08:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45db3ae-a058-4ef5-b841-b1d8fbb31cf0</guid><dc:creator>mesh777</dc:creator><description>&lt;p&gt;Is there any response upon this issue?&lt;/p&gt;
&lt;p&gt;Maybe you could propose a quick fix for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Mesh: Division by 0 if CTL Temperature Range matches</title><link>https://devzone.nordicsemi.com/thread/422994?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 13:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d123d1-cc7e-412b-95e9-5458c8ce84a5</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your report. I&amp;#39;ll take a closer look and report it to our developers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>