ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 10957] Display Filter Macro unable to edit.

Date: Sat, 14 Feb 2015 12:41:58 +0000

changed bug 10957


What Removed Added
Status UNCONFIRMED CONFIRMED
CC   [email protected]
Ever confirmed   1

Comment # 1 on bug 10957 from
It looks like this is a regression from bug 7471.

The problem is within this part of epan/dfilter/dfilter-macro.c:

    for (i = 0; i < num_macros; i++) {
        if (m == &(macros[i])) continue;
        //  ^^^^^^^^^^^^^^^^^

        if ( g_str_equal(m->name,macros[i].name) ) {
            *error = g_strdup_printf("macro '%s' exists already", m->name);
            m->usable = FALSE;
            return;
        }
    }

The "m" parameter refers to an internal data pointer (UAT_INDEX_PTR) while the
macros are referenced by UAT_USER_INDEX_PTR. There is also an invalid memory
access when a UAT contains "invalid" memory access.

Investigating further...


You are receiving this mail because:
  • You are watching all bug changes.