]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
MdePkg UefiLib: Check Table against NULL in ScanTableInSDT
[mirror_edk2.git] / MdePkg / Library / BaseSafeIntLib / BaseSafeIntLib.inf
1 ## @file
2 # Safe Integer Library
3 #
4 # This library provides helper functions to prevent integer overflow during
5 # type conversion, addition, subtraction, and multiplication.
6 #
7 # Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
8 # Copyright (c) 2017, Microsoft Corporation
9 #
10 # All rights reserved.
11 # Redistribution and use in source and binary forms, with or without
12 # modification, are permitted provided that the following conditions are met:
13 # 1. Redistributions of source code must retain the above copyright notice,
14 # this list of conditions and the following disclaimer.
15 # 2. Redistributions in binary form must reproduce the above copyright notice,
16 # this list of conditions and the following disclaimer in the documentation
17 # and/or other materials provided with the distribution.
18 #
19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27 # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30 ##
31
32 [Defines]
33 INF_VERSION = 0x00010005
34 BASE_NAME = BaseSafeIntLib
35 FILE_GUID = 4EA91BFA-3482-4930-B136-70679C6CE489
36 MODULE_TYPE = BASE
37 VERSION_STRING = 1.0
38 LIBRARY_CLASS = SafeIntLib
39
40 #
41 # The following information is for reference only and not required by the build tools.
42 #
43 # VALID_ARCHITECTURES = IA32 X64
44 #
45
46 [Sources]
47 SafeIntLib.c
48
49 [Sources.Ia32, Sources.ARM]
50 SafeIntLib32.c
51
52 [Sources.X64, Sources.AARCH64]
53 SafeIntLib64.c
54
55 [Sources.EBC]
56 SafeIntLibEbc.c
57
58 [Packages]
59 MdePkg/MdePkg.dec
60
61 [LibraryClasses]
62 BaseLib