File: symbols-visibility.patch

package info (click to toggle)
tlsh 4.12.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,952 kB
  • sloc: cpp: 9,132; python: 1,603; java: 1,214; sh: 703; javascript: 467; ansic: 54; makefile: 27; sed: 9
file content (43 lines) | stat: -rw-r--r-- 1,425 bytes parent folder | download
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++) {