Skip to content

Commit 4e3ae4e

Browse files
committed
Fix Linux symbol exports for Rust executable scanner
List the C helper symbols used by the Rust executable scanner path under CLAMAV_PRIVATE in libclamav.map. Linux release builds use the version script and otherwise hide these internal helpers from the Rust static archive, causing sigtool and other link targets to fail with undefined references. Validation: git diff --check; verified all symbols from the Ubuntu linker failure are listed.
1 parent 7e5dcc6 commit 4e3ae4e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

libclamav/libclamav.map

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,23 @@ CLAMAV_PRIVATE {
193193
cli_scan_fmap;
194194
cli_check_auth_header;
195195
cli_genhash_pe;
196+
cli_scanpe_clamav_services_from_rust;
197+
cli_pe_targetinfo_from_rust;
198+
cli_magic_scan_nested_fmap_type;
199+
cli_append_virus;
200+
cli_trust_this_layer;
201+
cli_hm_have_size;
202+
cli_hm_have_wild;
203+
cli_hm_have_any;
204+
cli_hm_scan;
205+
cli_hm_scan_wild;
206+
asn1_check_mscat;
207+
cli_jsonobj;
208+
cli_jsonarray;
209+
cli_jsonstr;
210+
cli_jsonint;
211+
cli_jsonuint64;
212+
cli_jsonbool;
196213
html_screnc_decode;
197214
mpool_create;
198215
mpool_calloc;

0 commit comments

Comments
 (0)