From 3c110d7bb20d9aaa2c1c70a8a4acde66d2baf3a5 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 15 Apr 2015 12:55:09 +0200 Subject: [PATCH] Androiddump: Fix Memory - corruptions (OVERRUN) (CID 1293632) Change-Id: Ifd0d5026d207f763e1726963049acfb5a77f4b39 Reviewed-on: https://code.wireshark.org/review/8075 Reviewed-by: Alexis La Goutte Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Michal Labedzki --- extcap/androiddump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extcap/androiddump.c b/extcap/androiddump.c index 070d3e146a..22bc99fba6 100644 --- a/extcap/androiddump.c +++ b/extcap/androiddump.c @@ -540,7 +540,7 @@ static int add_android_interfaces(struct interface_t **interface_list, pos = strchr(pos, '\t'); result = (int) (pos - prev_pos); pos = strchr(pos, '\n') + 1; - if (result > (int) sizeof(serial_number)) { + if (result >= (int) sizeof(serial_number)) { fprintf(stderr, "WARNING: Serial number too long, ignore device\n"); continue; }