<div dir="ltr">Looks straightforward enough. Ian?<br><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 29, 2018 at 12:02 PM Gary E. Miller via devel <<a href="mailto:devel@ntpsec.org">devel@ntpsec.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yo All!<br>
<br>
The Linux kernel has now removed all Varible Length Arrays (VLAs).<br>
<br>
Linux has spoke:<br>
<br>
"USING VLA'S IS ACTIVELY STUPID! It generates much more code, and much<br>
_slower_ code (and more fragile code), than just using a fixed key size<br>
would have done."<br>
<br>
It is easy to find where VLAs are used, just add the -Wvla cflag.<br>
<br>
# export CGLAG=-Wvla<br>
<br>
Then build as usual.<br>
<br>
Looks like git head NTPsec has two VLAs:<br>
<br>
[180/273] Compiling tests/libntp/ymd2yd.c<br>
../../tests/libntp/macencrypt.c: In function 'TEST_macencrypt_Encrypt_':<br>
../../tests/libntp/macencrypt.c:34:2: warning: ISO C90 forbids array 'packetPtr'<br>
whose size can't be evaluated [-Wvla]<br>
char packetPtr[totalLength];<br>
^~~~<br>
../../tests/libntp/macencrypt.c: In function 'TEST_macencrypt_CMAC_Encrypt_':<br>
../../tests/libntp/macencrypt.c:70:2: warning: ISO C90 forbids array 'packetPtr' whose size can't be evaluated [-Wvla]<br>
char packetPtr[totalLength];<br>
^~~~<br>
<br>
Should be easy to fix. Anyone want to try?<br>
<br>
<br>
RGDS<br>
GARY<br>
---------------------------------------------------------------------------<br>
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703<br>
<a href="mailto:gem@rellim.com" target="_blank">gem@rellim.com</a> Tel:<a href="tel:(541)%20382-8588" value="+15413828588" target="_blank">+1 541 382 8588</a><br>
<br>
Veritas liberabit vos. -- Quid est veritas?<br>
"If you can’t measure it, you can’t improve it." - Lord Kelvin<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a><br>
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ntpsec.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Mark Atwood<br>
<a href="http://about.me/markatwood">http://about.me/markatwood</a><br>
+1-206-604-2198</p>
</div></div>