Files
clamav/libclamav_rust
Valerie Snyder b5665f3208 Sigtool: fix --diff bugs and add support for '_' in cvd name
Sigtool's `--diff CVD_OLD CVD_NEW` feature will fail with preclass_tcfa
(or any other CVD with an underscore).
Apparently '_' is not a supported character in that code.  

While debugging this, I found some other issues:

* The call to verify the `.script` created with the `--diff` feature
  fails since adding the .sign digital signature verification code,
  because I called it wrong.
  We didn't notice because there are no automated tests for this feature.

* The --diff feature assumes you're in the same directory as the CVD
  files and that it is a relative path. 

* The --diff feature will change directories to a temp directory to
  verify the diff and then fail to apply the script because it has a
  relative path and now in a totally different directory

I don't know how (2) or (3) ever worked right.
One require absolute paths, while the other didn't provide a buffer
big enough for absolute paths. So confused!

This commit should make it so relative or absolute paths are fine for
the CVD's and the cvd name may now include underscores.

CLAM-2815
2025-07-11 19:13:11 -04:00
..