1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
Description: these 4 symbols are required by the tlsh_unittest binary to properly link.
Rather than statically link the binary, export them instead.
Author: Mattia Rizzolo <mattia@debian.org>
Bug: https://github.com/trendmicro/tlsh/issues/111
Forwarded: not-needed
Last-Update: 2021-10-12
--- a/src/input_desc.cpp
+++ b/src/input_desc.cpp
@@ -153,6 +153,7 @@
return (strcmp(r1->full_fname, r2->full_fname));
}
+__attribute__ ((visibility ("default")))
int set_input_desc(char *dirname, char *listname, int listname_col, int listname_csv,
char *fname, char *digestname, int show_details, int fc_cons_option, char *splitlines, struct InputDescr *inputd, int showvers)
{
--- a/src/shared_file_functions.cpp
+++ b/src/shared_file_functions.cpp
@@ -138,6 +138,7 @@
}
}
+__attribute__ ((visibility ("default")))
const char *convert_special_chars(char *filename, char *buf, size_t bufSize, int output_json)
{
int len = strlen(filename);
@@ -182,6 +183,7 @@
////////////////////////////////////////////////////////////////////////////////
+__attribute__ ((visibility ("default")))
int read_file_eval_tlsh(char *fname, Tlsh *th, int show_details, int fc_cons_option, int showvers)
{
///////////////////////////////////////
@@ -402,6 +404,7 @@
return(err);
}
+__attribute__ ((visibility ("default")))
void freeFileName(struct FileName *fnames, int count)
{
for (int i=0; i<count; i++) {
|