From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by mx.groups.io with SMTP id smtpd.web08.6651.1661308286598979757 for ; Tue, 23 Aug 2022 19:31:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=Qvbf//gZ; spf=pass (domain: flex--yuanyu.bounces.google.com, ip: 209.85.216.73, mailfrom: 3fy0fywykbcwgcs5gcy66y3w.u64vwdw3wv2k.y96c7a.06@flex--yuanyu.bounces.google.com) Received: by mail-pj1-f73.google.com with SMTP id s17-20020a17090aad9100b001faf81f9654so120143pjq.5 for ; Tue, 23 Aug 2022 19:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc; bh=+V806ZWmX42Fh4PB9/ipa3Ls20XnGacuEdYVO2angR4=; b=Qvbf//gZqCaSuPVQFUbknI5Pohchl8TZbSKr0DJRKzyugswZ2rf++sO9qeO2gTaPJl +tzuZv0xxl5hLdhNV1I+lo97GtTV6UYRjYCzNYaKHnoIDnTRnYU58iUkHp7Yp7AE/dfD 9OH3YnR2LhyZsnAptwjmXj5DH+svNbc8ZZQ3kox5CMD1NOyLxNQ23PKCiXU0nUjXwNHo LLXX6FpXPe6z4bjTPuWImPQfP33EzQQ9TXH0HPPYuNBtbxv5+Ov/rv6OF01pIqaVVE1y gc1KDFjuVu7anGLKBWOQtPiO7oceeZiQOYmup43uYkbrn0gITpJhKlzLFNV0jhWnaZQV 0NIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc; bh=+V806ZWmX42Fh4PB9/ipa3Ls20XnGacuEdYVO2angR4=; b=secjsY62LVCB5jQ4EnQtdb2wdvDrfuA8bvyXfw/tccyEFjVJBt8+UYV7D1d21YtOOA hhg6RzPsEGazD2ZFsOw9uCNIwtp/ECV2dVGfFFBt+61AlY1rR2eNy5/2u4OgZoa673B5 SoKdLxCuu2imml/AIVVLwshJhKpleQEVwFljX7YGd77u9v1TZVVyHHb4j4SEGpUuSN0q i5xOx/PLTC1yMFIbi0S50T8+V16i+P7MP91H90BZs6T6OTnaQacaBrteXNqtANKu2kzh qf5TjLgfz2rooNJIdA2XLaCoZSQfjzPhggYkOukGUE0OVeNNwJGhhnpDt1GSnPvlLd38 OkTg== X-Gm-Message-State: ACgBeo0+L50a7I4MPan8faAqyujG8sk588gVNAJ3oZIHrBz8N1QYlE5n 89/UNvQoA57DCPzpByJCIUTf489+H9clvPds6Yk7lIOCqHpCU5IM7xxtdD5LD8X4s58eI5iLVSb aY1lzK5nTEs29MGMjNmyE2P4B9Z8WWo+tnKYyZiAOUbQaznwg7oJMIYgz5pY= X-Google-Smtp-Source: AA6agR4Y/UftvPcq8B5t4FKJIansnmlxFBK4lcljbFSn61GxnCND9lZb97kN2/1ig6dkzmu98DtrVewUIMo= X-Received: from yuanyu.kir.corp.google.com ([2620:15c:29:204:2db3:282b:550e:d4f]) (user=yuanyu job=sendgmr) by 2002:a05:6a00:1803:b0:536:e9a4:89d4 with SMTP id y3-20020a056a00180300b00536e9a489d4mr7061047pfa.28.1661308285803; Tue, 23 Aug 2022 19:31:25 -0700 (PDT) Date: Tue, 23 Aug 2022 19:31:22 -0700 Message-Id: <20220824023123.3060905-1-yuanyu@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Subject: [PATCH v1 0/1] Check arguments to be compliant with spec From: "Yuan Yu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jordan Justen , Laszlo Ersek , Anthony Perard , Julien Grall Content-Type: text/plain; charset="UTF-8" Some function doesn't have certain checks to be compliant with UEFI specification. This series adds a check to return EFI_INVALID_PARAMETER if certain argument is NULL. The changes can be seen at: https://github.com/yyu/edk2/tree/return_value_fix_v1 Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Laszlo Ersek Cc: Anthony Perard Cc: Julien Grall Yuan Yu (1): OvmfPkg/PlatformDxe: Check RouteConfig arguments for spec compliance OvmfPkg/PlatformDxe/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.37.2.672.g94769d06f0-goog