Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'trace-tools-v6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull rtla tool fixes from Steven Rostedt:

- Fix a buffer overflow in actions_parse()

The "trigger_c" variable did not account for the nul byte when
determining its size

- Fix a compare that had the values reversed

actions_destroy() is supposed to reallocate when len is greater than
the current size, but the compare was testing if size is greater than
the new length

* tag 'trace-tools-v6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
rtla/actions: Fix condition for buffer reallocation
rtla: Fix buffer overflow in actions_parse

+2 -2
+2 -2
tools/tracing/rtla/src/actions.c
··· 49 49 static struct action * 50 50 actions_new(struct actions *self) 51 51 { 52 - if (self->size >= self->len) { 52 + if (self->len >= self->size) { 53 53 self->size *= 2; 54 54 self->list = realloc(self->list, self->size * sizeof(struct action)); 55 55 } ··· 131 131 { 132 132 enum action_type type = ACTION_NONE; 133 133 char *token; 134 - char trigger_c[strlen(trigger)]; 134 + char trigger_c[strlen(trigger) + 1]; 135 135 136 136 /* For ACTION_SIGNAL */ 137 137 int signal = 0, pid = 0;