Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: a1b623b938b8aa2a019c11f7c07eca7504a03749
      
https://github.com/tianocore/edk2/commit/a1b623b938b8aa2a019c11f7c07eca7504a03749
  Author: Doug Flick <dougfl...@microsoft.com>
  Date:   2025-04-14 (Mon, 14 Apr 2025)

  Changed paths:
    M BaseTools/Source/Python/Common/Expression.py

  Log Message:
  -----------
  BaseTools:Expression.py Size used before Init

The following example fails to be parsed correctly due to Size
being used in the outer scope but initialized in the inner
scope

```
gPlatformPkgTokenSpaceGuid.PcdSecureBootDbxBinaryFile|{}
```

Problematic code:

```python
for Item in NewPcdValueList:
      Size = 0
      # ....

if Size > 0:
      PcdValue = '{' + ', '.join(AllPcdValueList) + '}'
````

Signed-off-by: Doug Flick <dougfl...@microsoft.com>


  Commit: 1805068b5ef41572569da02f2347317d5665ddee
      
https://github.com/tianocore/edk2/commit/1805068b5ef41572569da02f2347317d5665ddee
  Author: Doug Flick <dougfl...@microsoft.com>
  Date:   2025-04-14 (Mon, 14 Apr 2025)

  Changed paths:
    M BaseTools/Source/Python/Common/Expression.py

  Log Message:
  -----------
  BaseTools:Expression.py Add Assertion for PCD with value {}

This adds an assertion to the PCD class in the Expression.py
file to check for zero-byte PCDs.

Signed-off-by: Doug Flick <dougfl...@microsoft.com>


  Commit: 0f1c0d2d2d9e567746ce4fedea23f833fa0d3abd
      
https://github.com/tianocore/edk2/commit/0f1c0d2d2d9e567746ce4fedea23f833fa0d3abd
  Author: Doug Flick <dougfl...@microsoft.com>
  Date:   2025-04-14 (Mon, 14 Apr 2025)

  Changed paths:
    M BaseTools/Source/Python/Common/Expression.py

  Log Message:
  -----------
  BaseTools:Expression.py Adding a check for missing '}' in the parser

This check is to catch cases where a missing '}' exists in a dec or dsc
file.

Signed-off-by: Doug Flick <dougfl...@microsoft.com>


Compare: https://github.com/tianocore/edk2/compare/fdede2e1eaa4...0f1c0d2d2d9e

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to