Release 6.5.15: bugreport-service fixes 83/255883/1 submit/tizen/20210324.085352
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 24 Mar 2021 20:26:55 +0000 (21:26 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 24 Mar 2021 20:26:55 +0000 (21:26 +0100)
This release fixes up two important issues with bugreport-service:
 - null-terminate array of getopt args to avoid crash on arg parsing
 - default to 'bugreport' report type when it's not specified

Change-Id: I7e99d19cfacb7f1193314a9dd4c6256b9aa25503

packaging/crash-worker.spec
src/bugreport-service/diagnostics/diagnostics_dump.c

index 3418cd6..567192d 100644 (file)
@@ -23,7 +23,7 @@
 
 Name:           crash-worker
 Summary:        Coredump handler and report generator for Tizen
-Version:        6.5.14
+Version:        6.5.15
 Release:        1
 Group:          Framework/system
 License:        Apache-2.0 and BSD-2-Clause and MIT
index 4dc2c57..9a9c1dd 100644 (file)
@@ -259,7 +259,7 @@ static bool diagnostics_call_parse_options(int out_fd, char **params, int params
 {
        struct timespec cur_time;
        clock_gettime(CLOCK_REALTIME, &cur_time);
-       dco->report_type = BR_UNKNOWN;
+       dco->report_type = BR_BUGREPORT;
        dco->from = 0;
        dco->to = cur_time.tv_sec;
        dco->last_set = false;
@@ -273,6 +273,7 @@ static bool diagnostics_call_parse_options(int out_fd, char **params, int params
                {"last", required_argument, NULL, PN_LAST},
                {"to", required_argument, NULL, PN_TO},
                {"from", required_argument, NULL, PN_FROM},
+               {0, 0, 0, 0},
        };
 
        int opt;