Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Elevation: Soaring to 2.0.3 #26

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
History
=======

2.0.3 (2024-01-17)
------------------
- Feature Improvements:
- Updated the list of invalid XML characters to enhance parsing accuracy.
- Upgraded dependencies to enhance the security of the application

6 changes: 5 additions & 1 deletion src/xmlcli/XmlCliLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
CliSpecMajorVersion = 0x00
CliSpecMinorVersion = 0x00

MAXIMUM_BIOS_MEMORY_MAP = 0xFFFFFFFF
PAGE_SIZE = 0x1000
FIRMWARE_BASE_MASK_ALIGNMENT = (MAXIMUM_BIOS_MEMORY_MAP - PAGE_SIZE + 0x1)

CliCmdDict = {APPEND_BIOS_KNOBS_CMD_ID: 'APPEND_BIOS_KNOBS_CMD_ID', RESTOREMODIFY_KNOBS_CMD_ID: 'RESTOREMODIFY_KNOBS_CMD_ID',
READ_BIOS_KNOBS_CMD_ID : 'READ_BIOS_KNOBS_CMD_ID', LOAD_DEFAULT_KNOBS_CMD_ID: 'LOAD_DEFAULT_KNOBS_CMD_ID',
PROG_BIOS_CMD_ID : 'PROG_BIOS_CMD_ID', FETCH_BIOS_CMD_ID: 'FETCH_BIOS_CMD_ID',
Expand Down Expand Up @@ -1136,7 +1140,7 @@ def PatchXmlData(XmlListBuff, XmlAddr, XmlSize):
offset = offset + 5 + DataSize
log.info(f'Patch buffer data size = {PacketSize:d} bytes')

InValidXmlChar=['\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\x0B', '\x0C', '\x0E', '\x0F', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19', '\x1A', '\x1B', '\x1C', '\x1D', '\x1E', '\x1F', '\x7F', '\x80', '\x81', '\x82', '\x83', '\x84', '\x86', '\x87', '\x88', '\x89', '\x8A', '\x8B', '\x8C', '\x8D', '\x8E', '\x8F', '\x90', '\x91', '\x92', '\x93', '\x94', '\x95', '\x96', '\x97', '\x98', '\x99', '\x9A', '\x9B', '\x9C', '\x9D', '\x9E', '\x9F', '\xAE']
InValidXmlChar=['\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\x0B', '\x0C', '\x0E', '\x0F', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19', '\x1A', '\x1B', '\x1C', '\x1D', '\x1E', '\x1F', '\x7F', '\x80', '\x81', '\x82', '\x83', '\x84', '\x86', '\x87', '\x88', '\x89', '\x8A', '\x8B', '\x8C', '\x8D', '\x8E', '\x8F', '\x90', '\x91', '\x92', '\x93', '\x94', '\x95', '\x96', '\x97', '\x98', '\x99', '\x9A', '\x9B', '\x9C', '\x9D', '\x9E', '\x9F', '\xAE', '\xB0']
def SanitizeXml(filename):
try:
MyTree = ET.parse(filename)
Expand Down
2 changes: 1 addition & 1 deletion src/xmlcli/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# MINOR ------------
MINOR = 0
# BUILD ------
BUILD = 2 # or __revision__
BUILD = 3 # or __revision__
# TAG -------
TAG = ""
__version__ = LooseVersion("{major}.{minor}.{build}{tag}".format(
Expand Down