epics-modules / autosave

APS BCDA synApps module: autosave
https://epics-modules.github.io/autosave/
Other
8 stars 31 forks source link

Added -V flag to asVerify, and fixed a segmentation fault #49

Closed simon-ess closed 1 year ago

simon-ess commented 2 years ago

Previously, if you ran asVerify with no filename, i.e. any of the following:

$ asVerify
$ asVerify -v
$ asVerify -

you would get a segmentation fault due to the strcpy reaching beyond the length of argv. This fixes this issue, as well as adding a -V (for version) flag allowing one to test the existence of this utility.

simon-ess commented 1 year ago

(I have rebased this onto the current master branch)