Package: aj-snapshot / 0.9.8-1


Package Version Patches format
aj-snapshot 0.9.8-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
00 fix long options.patch | (download)

src/aj-snapshot.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 fix getopt_long argument
 getopt_long(3) takes a pointer to an array of struct option as its
 third argument. However, in aj-snapshot.c, this array is incorrectly
 initialized because the last element is not zeroed out. This causes
 segmentation faults when trying to parse invalid arguments. This
 patch fixes this issue by adding an all-zero entry at the end of the
 array that is passed to getopt_long.