From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C761781940 for ; Wed, 4 Jan 2017 03:24:22 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 04 Jan 2017 03:22:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,459,1477983600"; d="scan'208";a="26000259" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.13]) by orsmga002.jf.intel.com with ESMTP; 04 Jan 2017 03:22:53 -0800 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Jiewen Yao , Liming Gao , Michael Kinney Date: Wed, 4 Jan 2017 19:22:33 +0800 Message-Id: <1483528957-28340-1-git-send-email-hao.a.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.0 Subject: [PATCH 0/4] Add and refine sting APIs in MdePkg/BaseLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2017 11:24:22 -0000 The series does the following things: 1). Add safe string functions [Ascii]StrnSizeS 2). Add safe string functions [Ascii]StrDecimalToUintnS, [Ascii]StrDecimalToUint64S, [Ascii]StrHexToUintnS and [Ascii]StrHexToUint64S 3). Refine the return value of string funcitons [Ascii]StrDecimalToUintn [Ascii]StrDecimalToUint64, [Ascii]StrHexToUintn and [Ascii]StrHexToUint64 4). Add safe string functions UnicodeStrnToAsciiStrS and AsciiStrnToUnicodeStrS Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (4): MdePkg/BaseLib: Add safe string functions [Ascii]StrnSizeS MdePkg/BaseLib: Add safe string functions that convert str to value MdePkg/BaseLib: Enhance the return value for string to uint functions MdePkg/BaseLib: Add safe string functions [U|A]StrnTo[A|U]StrS MdePkg/Include/Library/BaseLib.h | 641 ++++++++++++- MdePkg/Library/BaseLib/BaseLibInternals.h | 166 +++- MdePkg/Library/BaseLib/SafeString.c | 1387 ++++++++++++++++++++++++++++- MdePkg/Library/BaseLib/String.c | 334 +------ 4 files changed, 2154 insertions(+), 374 deletions(-) -- 1.9.5.msysgit.0