Skip to content

Fix ip segfault when using --color switch

Petr Vorel netdev 2 versions – Applied

Status from this message: Applied, Thans Petr

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v11 patch 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4color: Fix ip segfault when using --color switchinclude/json_print.h+1 -10 replies
2/4color: Fix another ip segfault when using --color switchinclude/color.h lib/color.c+2 -30 replies
3/4color: Cleanup code to remove "magic" offset + 7lib/color.c+8 -50 replies
4/4color: Rename enuminclude/color.h include/json_print.h lib/color.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH iproute2 v2 0/4] Fix ip segfault when using --color switch

Hi Stephen,

I cleanup code not to use magic offsets. I kept it in separate commits, as it's clearer what happened.

Petr Vorel (4):
color: Fix ip segfault when using --color switch
color: Fix another ip segfault when using --color switch
color: Cleanup code to remove "magic" offset + 7
color: Rename enum

 include/color.h      |  3 +--
 include/json_print.h |  2 +-
 lib/color.c          | 17 ++++++++++-------
 3 files changed, 12 insertions(+), 10 deletions(-)
Signature · 1 line
2.14.2