fix invalid array access
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 3 Aug 2010 03:13:32 +0000 (23:13 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 3 Aug 2010 03:13:32 +0000 (23:13 -0400)
reported by Damien Cottier

libust/marker.c

index 4dc7de1c8b7a13d538727abdedfcc247510728f6..19467d19bba9272bc3af2d1e37507d25f2505685 100644 (file)
@@ -439,7 +439,7 @@ static struct marker_entry *add_marker(const char *channel, const char *name,
        e->name = &e->channel[channel_len];
        memcpy(e->name, name, name_len);
        if (format) {
-               e->format = &e->name[channel_len + name_len];
+               e->format = &e->name[name_len];
                memcpy(e->format, format, format_len);
                if (strcmp(e->format, MARK_NOARGS) == 0)
                        e->call = marker_probe_cb_noarg;
This page took 0.02459 seconds and 4 git commands to generate.