File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
applications/zpc/components/zwave_command_handler/scripts Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 22
33# Copyright (c) 2014 Silicon Laboratories Inc.
44
5- from __future__ import print_function
6- import xml .dom .minidom
75import sys
8- import os .path
6+
7+ from defusedxml import minidom
98
109gets = []
1110sets = []
1413
1514
1615if __name__ == '__main__' :
17- if (sys .argv [1 ] == '-' ):
18- x = xml .dom .minidom .parse (sys .stdin )
19- else :
20- x = xml .dom .minidom .parse (sys .argv [1 ])
16+ file = sys .stdin if sys .argv [1 ] == '-' else sys .argv [1 ]
17+ x = minidom .parse (file , forbid_dtd = True )
2118
2219 classes = dict ()
2320
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ debian_codename?=bookworm
3636packages? =cmake ninja-build build-essential python3-full ruby clang
3737packages+ =git-lfs unp time file usbutils bsdutils
3838packages+ =nlohmann-json3-dev
39+ packages+ =python3-defusedxml # For extract_get.py
3940# TODO: remove for offline build
4041packages+=curl wget python3-pip
4142packages+ =expect
You can’t perform that action at this time.
0 commit comments