[Aide] patch to fix another seg fault in gen_list.c

Axel Rau Axel.Rau at Chaos1.DE
Sat May 20 17:31:22 EEST 2006


This seg fault happens (reproducible) with an --UPDATE after a config  
change, which
changed attribute of all database entries:
--------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x1c00d50b in add_file_to_tree (tree=0x854dc040, file=0x8b93bb80,  
db=1, status=128,
     attr=31292) at gen_list.c:1095
1095        localignorelist=(node->new_data->attr^node->old_data->attr);
(gdb) p *node
$1 = {sel_rx_lst = 0x0, neg_rx_lst = 0x0, equ_rx_lst = 0x0, childs =  
0x0,
   parent = 0x854dc040, path = 0x879d14a0 "/etc", checked = 133,  
conf_lineno = -1,
   rx = 0x0, attr = 31292, new_data = 0x0, old_data = 0x8b93bb80}
----------------------------------------------------
The following attached patch is against HEAD but has been tested with  
0.11
release only.
Someone with better knowledge of aide's program logic should review, if
	node->checked-=(DB_OLD + DB_NEW);
has possible unwanted side effects.

The SIGSEGV patch, descibed here
	https://mailman.cs.tut.fi/pipermail/aide/2006-May/000530.html
is also included.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen_list.c.patch
Type: application/octet-stream
Size: 1194 bytes
Desc: not available
Url : https://mailman.cs.tut.fi/pipermail/aide/attachments/20060520/47fb518f/gen_list.c.obj
-------------- next part --------------
Axel
Axel Rau, ?Frankfurt , Germany                       +49-69-951418-0



More information about the Aide mailing list