leading whitespace in ACF is a syntax error/crash
Bug #1677302 reported by
mdavidsaver
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Low
|
Unassigned | ||
3.14 |
Fix Released
|
Low
|
Unassigned | ||
3.15 |
Fix Released
|
Low
|
Unassigned | ||
3.16 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Leading whitespace in a comment line of an ACF file is apparently a syntax error, and in <=3.15.3 causes ascheck to crash w/ buffer overflow detected.
I'll attach an offending example.
To post a comment you must log in.
Example ACF file attached
w/ 3.16 current
> $ ./bin/linux- x86_64- debug/ascheck bad.acf
> invalid character '#'
> Access Security file error at line 3
> syntax error
> Access Security file error at line 3
> ascheck: Access Security File failed.
With 3.15.3
> $ ascheck bad.acf 64-linux- gnu/libc. so.6(+0x731af) [0x7fe04440c1af ] 64-linux- gnu/libc. so.6(__ fortify_ fail+0x37) [0x7fe044491aa7 ] 64-linux- gnu/libc. so.6(+0xf6cc0) [0x7fe04448fcc0 ] 64-linux- gnu/libc. so.6(+0xf61c9) [0x7fe04448f1c9 ] 64-linux- gnu/libc. so.6(_IO_ vfprintf+ 0x55eb) [0x7fe0443e47ab ] 64-linux- gnu/libc. so.6(__ vsprintf_ chk+0x88) [0x7fe04448f258 ] 64-linux- gnu/libc. so.6(__ sprintf_ chk+0x7d) [0x7fe04448f1ad ] x86_64- linux-gnu/ libCom. so.3.15. 3(+0x2515c) [0x7fe04476915c ] x86_64- linux-gnu/ libCom. so.3.15. 3(asInitialize+ 0xae0)[ 0x7fe04476a970] x86_64- linux-gnu/ libCom. so.3.15. 3(asInitFP+ 0xb0)[0x7fe0447 6b180] x86_64- linux-gnu/ libCom. so.3.15. 3(asInitFile+ 0x29)[0x7fe0447 6b239] main+0x114) [0x400a54]
> *** buffer overflow detected ***: ascheck terminated
> ======= Backtrace: =========
> /lib/x86_
> /lib/x86_
> /lib/x86_
> /lib/x86_
> /lib/x86_
> /lib/x86_
> /lib/x86_
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> ascheck(