]> git.proxmox.com Git - mirror_edk2.git/commit
UnitTestFrameworkPkg/PersistenceLib: Correct the allocated size.
authorGuomin Jiang <guomin.jiang@intel.com>
Tue, 31 Mar 2020 02:57:01 +0000 (10:57 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 26 Apr 2020 01:25:14 +0000 (01:25 +0000)
commit63d425002a7d513759be6f216e5bacb9157a5ded
treebd412160dab25d34992886f0a1d237e85dc057ec
parentd5339c04d7cd47c061ec146a7b062052e3dc56ca
UnitTestFrameworkPkg/PersistenceLib: Correct the allocated size.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2608

According to logic and the practice, it is need to allocate ascii length
by 2 for unicode string.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.c