Message ID | 20240612144010.470339-7-Michael.Glembotzki@iris-sensing.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBDY5JUXLVIEBBXHGU2ZQMGQEVGF6SUI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=J6R20YfM; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gjJPlf4M; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::338; helo=mail-wm1-x338.google.com; envelope-from=swupdate+bncbdy5juxlviebbxhgu2zqmgqevgf6sui@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wm1-x338.google.com (mail-wm1-x338.google.com [IPv6:2a00:1450:4864:20::338]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vzp9s2pQqz20KL for <incoming@patchwork.ozlabs.org>; Thu, 13 Jun 2024 00:40:33 +1000 (AEST) Received: by mail-wm1-x338.google.com with SMTP id 5b1f17b1804b1-4219cb14a23sf31406445e9.3 for <incoming@patchwork.ozlabs.org>; Wed, 12 Jun 2024 07:40:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718203229; cv=pass; d=google.com; s=arc-20160816; b=DMNtAmL8fXCzpQxBCDKeG2bGhLa0rG/bmpERjDWb2aSqXVXs17h1hN6se1tTMlr7Qm EiF7Km2QuNPjDjwQ25pxQDrh39sNiY1gDBuPoFYvnBSTjWOAUqxN3OR/r85rrlkswM0r 0xpdKZyg5qzvTC9BROL0LW/FD4PjNbd4gQrBfUiYsMRSxwBBPsTBHI+9yQtCQLdhgolR mWuIlY0g5DPT3JO/nbplsgyai9hKs+VHpgZM66LpLhLnzT6A5MC/poof3jiAovcnUDDQ igWUya1O89jQrpBld84opBFQ6rCbEobno7RF3DmH5J3IJT6eH+jDJqo501JB3lZJBTyI NSvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature :dkim-signature; bh=Fs8n2WXMxfdylX8t+SUdFNlpduRuPWqNbhnJg62JlcI=; fh=GqvHn2BD4F2Ejygs2KYghBFLNhIGYxehJE27+NMVs2M=; b=tRFoMYKDr1JkDPX27eIdJe5ATKAWCMp8iqVOXXo9xJ7zSIRIfV5XdVNyaNKm+ZGSXT LRHSrFH8Q+w4YUxw7U9UAL5rhZAI2uNp/A0bdXSOy7/xgr1e4Z807WQTJGIOqZs1p2hM jNQopbyIzhLGvanpCbtWzk4wA8j0pqN8hnkpJAxbzydMRt9Lfs59Toj36S+NNa02dYNu Feq1N3mBGKTNu4fqkXGMSvUiRdytRBKW+Lj0Cw2oJrx9eFhSvTxLzwn42mfqV7lQKQ4C xRzyAKwO40ValjQwnwuoOlo93ARA9jQ53cZdqw0uC/6cyBEf0O2yU1cKn7Dnlae5HNb3 9dgQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LFUPswxo; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1718203229; x=1718808029; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=Fs8n2WXMxfdylX8t+SUdFNlpduRuPWqNbhnJg62JlcI=; b=J6R20YfMxRxE6qyTMJ3Qx8xcL8slErWtimWz84YAIKXJ/lcgAtiDcRvGoq3Oz+g7vR v9e6/Kue3KIzdcawmrQg/PLU90PEtjMb+QbAxSsROH6oIz6JQ/aWE6+cLi7Og2MTNfcH cRtouRxmxtHw0CG1y31DtH2Qznr/+hofeafJxvfO3ddveZHm4aBGPc5YaGX3BGJaeEFd qeaesRuq/Ez1fwho43DV1ZLjCe1l5CNDiOWC3xX+wFaeO2PL/0AfCxNGbB/KppxfGOpf YxmF0PW8yjYNehAm03grmv6jauB7RIEUycXuTlnU645yOH6GrONKHO5QxMn9Na6DPS+z ZUeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718203229; x=1718808029; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Fs8n2WXMxfdylX8t+SUdFNlpduRuPWqNbhnJg62JlcI=; b=gjJPlf4M6zHIjm82CTOtxZokR+Pbc8EK5dAz/9nIsNUa+dzkHhmlHKuAwQB5wmlhH6 bbXnGJR43KunReyjpuAMTf76VZd3Numk+sBX25fzk9N1MRhDM6WjbZjhqGQY55hpXmri Ktq9/rxLEtJ9iFdXUxHxzc1FeriJP6w6+Hl+++ygg8AwfrGB4wBEkaxy6PhN1wGaoN1E Dkv8lDvBIDlXGJLCIcMUGYAY0kPfwkBoQhu5uZBjEs1W7njh9hiU2ioQd5smhEW3+O0i FyYoh6xuuRkyv+kqyzlxrA4sDWRT+3Lt9jl+i++ZWJpvlyy3cfZvQH2bFQFkyh0ktT5q DKQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718203229; x=1718808029; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=Fs8n2WXMxfdylX8t+SUdFNlpduRuPWqNbhnJg62JlcI=; b=phhY2zAgRQZL8gtEdULKu0jSFBBNIWJgQFTNRcyxw3hsLKWR2xm1k0svOOzIJpo8o2 V72zhiUveas8eP8KRgiQdC2CA0zK33JVeBrSVxU4SVPympPk96p3VDHPcS6Qp7T8+tdd Pfd5FFzeFQC7UqLPv51Vaf7WVoF9+5p4n4v5RZ5cyWJ9/0oOYYKweKZt8Vq5zw9YDddq M9LIQGhh5sVg0yfu3paK7WUygEQTJzZ44UK2srssCPtJuvJ9wmqSzrJVsTkm32lMu/Z+ d0Ldh7v0GS3ZSlRPJU7wWLXyzrey+aFQotv1PV+q8AfC+tKkdg8NqjFgdjIC+EImyXGS Tvnw== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUNwRwFGVjgW9pLfC8Hzuf+4kV/c6DSHyOGv/cDEMz2Nr9bVES2dJxGkBzE3KAml81wfTzodnX46n3DJo+TLS8FFGYACUFz4aGZ7mwyZA== X-Gm-Message-State: AOJu0Yx30cN+MJGpHLdZ1KAFFBgF+EyTUgLyqqqrvCMgwY18ET+gT4l5 l7HyX5+Fe0ycyLdntstvLc1X4+qqDAR3/UfiJl8jJd3rjk0anHjX X-Google-Smtp-Source: AGHT+IG11rIlHczBFf4DWKN7h86+KcaSpwAXjGkgPTiC8Jx9Ax3hx7ND7xV2TnHPBBKDV9pN9gf6Ew== X-Received: by 2002:a05:600c:a14:b0:421:f4db:6e0 with SMTP id 5b1f17b1804b1-422862b3e59mr20992415e9.5.1718203228850; Wed, 12 Jun 2024 07:40:28 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:4451:b0:421:f933:a7ea with SMTP id 5b1f17b1804b1-421f933e39bls17379875e9.0.-pod-prod-05-eu; Wed, 12 Jun 2024 07:40:26 -0700 (PDT) X-Received: by 2002:a05:600c:510e:b0:422:aca:f87e with SMTP id 5b1f17b1804b1-422864ae245mr24850635e9.19.1718203226175; Wed, 12 Jun 2024 07:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718203226; cv=none; d=google.com; s=arc-20160816; b=dQlTDIDbuHhh2Qs4z81kGiBpWsFlnYYAU54fK12wHCd/hWE0JpR1JbQbHuW6/sCOyA gyydfYrCH1BGhJcvsET0N2h4RzZwDZG9SaMc5JXWYy/yjEJb0froH2A6QjzP9MfcJ/5t 0qMwX4Equz1B5XEgxyRl8plL+GzjUWfcsr3HRua++ojvcEmPsV/QHbvZT1xgzhXW5T0l yXeHv3WET0U88PXCCUp24E+wWrEWIEDyeq/QRqz2NVcwaWJoeBqiIGYI4Sk/labWM4yx Kg68eoWkrQkcW25mQRjA1FLle9VGWY9miM0tGJt+HkTxb3v4PQ4SdH3eCY/X5tklfV4i O6Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=OJPkVEIh2QywhxMG1+B9rnefrGK/GxqHAUo10KfKRu8=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=TuDzWRR2qmlQt+CbJdoqo5ABDyI8nBFLPg1iEBLj4cWmNrsL6PKxXOR6y5FSTYjvkr LgXQPEzjAlZCkZgVcVVnLOpSsuXWI0Q2Gyw2zyuUBQxcKjFanNtdczNL/mZSZVJijXEq +NSoGokQbpaQN3I2A3b1KYPucRTDj4Xrhat2Wpl//fxRsvI9KNm8mNjpEvlZ9rN77DDP eCxKH8TSNTT0kc0xPkVulMauzpoEZj+HDwXj8f5fJmSFSl3sJTDrIsDatkyRWUFIqZ46 MyYsh3ictDjUHCgBy9jbWssbY42jSlcbOqmqy90UiFLGd04ew6LJyEPp0X/Dz8m3G3UI g2jw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LFUPswxo; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com. [2a00:1450:4864:20::129]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-42286fe58ffsi415195e9.1.2024.06.12.07.40.26 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 07:40:26 -0700 (PDT) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) client-ip=2a00:1450:4864:20::129; Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-52c9034860dso3818501e87.2 for <swupdate@googlegroups.com>; Wed, 12 Jun 2024 07:40:26 -0700 (PDT) X-Received: by 2002:a05:6512:3e07:b0:52c:9ae0:beed with SMTP id 2adb3069b0e04-52c9ae0bf7cmr1871664e87.52.1718203225038; Wed, 12 Jun 2024 07:40:25 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:76fc::b071]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f16b27ac7sm481179166b.54.2024.06.12.07.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:40:24 -0700 (PDT) From: Michael Glembotzki <m.glembo@gmail.com> To: swupdate@googlegroups.com Cc: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> Subject: [swupdate] [PATCH 06/23] mongoose: Forward port deprecated mg_strstr() Date: Wed, 12 Jun 2024 16:36:04 +0200 Message-ID: <20240612144010.470339-7-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240612144010.470339-1-Michael.Glembotzki@iris-sensing.com> References: <20240612144010.470339-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LFUPswxo; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Update Mongoose Version to 7.14
|
expand
|
diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c index fccc5a62..5e57d326 100644 --- a/mongoose/mongoose_multipart.c +++ b/mongoose/mongoose_multipart.c @@ -48,6 +48,19 @@ static void mg_http_free_proto_data_mp_stream( memset(mp, 0, sizeof(*mp)); } +static const char *mg_strstr(const struct mg_str haystack, + const struct mg_str needle) { + size_t i; + if (needle.len > haystack.len) return NULL; + if (needle.len == 0) return haystack.buf; + for (i = 0; i <= haystack.len - needle.len; i++) { + if (memcmp(haystack.buf + i, needle.buf, needle.len) == 0) { + return haystack.buf + i; + } + } + return NULL; +} + static void mg_http_multipart_begin(struct mg_connection *c, struct mg_http_message *hm) { struct mg_http_multipart_stream *mp_stream;
mongoose rev-id: b46bee0540c83c780ae9622ef18b9cc8a7b3ebab Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> --- mongoose/mongoose_multipart.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)