<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/bugs/1181">[bugs:#1181]</a> iem_tab crash at loading on 64bit linux</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> v0.46<br />
<strong>Labels:</strong> 64bit <br />
<strong>Created:</strong> Tue Dec 30, 2014 05:22 PM UTC by Antoine Villeret<br />
<strong>Last Updated:</strong> Tue Dec 30, 2014 05:22 PM UTC<br />
<strong>Owner:</strong> musil</p>
<p>line 42 of <code>tab_sqrt.c</code> triggers a stack smashing on my Ubuntu 14.10 64bit system with pd 0.46-4.</p>
<p>line 42 is : <br />
<code>*(unsigned int *)(&f) = l;</code></p>
<p>On my system : <br />
<code>printf("size of t_float : %d, long : %d, unsigned int: %d\n", sizeof(t_float), sizeof(long), sizeof(unsigned int));</code></p>
<p>shows : <br />
<code>size of t_float : 4, long : 8, unsigned int: 4</code></p>
<p>while on 32bit long is 4 byte wide.</p>
<p>and obviously, one can't cast a 8 byte wide variable into a 4 byte wide one without any care.</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/bugs">https://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>