[LinuxCNC/linuxcnc PR#518] halcompile: Add checks to generated code for array overflows

未分类 bolang 5个月前 (10-15) 24次浏览

Issue #518 | 状态: 已关闭 | 作者: jepler | 创建时间: 2018-10-27


This checks at ‘loadrt’ time that the dynamic array size fits within
the static maximum size. This would detect problems like demux’s
buggy “pin out bit out-## [1:personality]” which would allocate space
for at most 1 pin. Now, this generates an error like

halcmd: loadrt demux count=1 personality=32
Note: Using POSIX non-realtime
Pin out-##: Requested size 32 exceeds max size 1
demux: rtapiappmain: No space left on device (-28)

(This doesn’t add any runtime checking of the accesses like out(i) = true)


评论 (1)

#1 – jepler 于 2018-10-27

@SebKuzminsky do you want this for 2.7?


原始Issue: https://github.com/LinuxCNC/linuxcnc/pull/518

喜欢 (0)