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 2
2
3
3
# Copyright (c) 2014 Silicon Laboratories Inc.
4
4
5
- from __future__ import print_function
6
- import xml .dom .minidom
7
5
import sys
8
- import os .path
6
+
7
+ from defusedxml import minidom
9
8
10
9
gets = []
11
10
sets = []
14
13
15
14
16
15
if __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 )
21
18
22
19
classes = dict ()
23
20
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ debian_codename?=bookworm
36
36
packages? =cmake ninja-build build-essential python3-full ruby clang
37
37
packages+ =git-lfs unp time file usbutils bsdutils
38
38
packages+ =nlohmann-json3-dev
39
+ packages+ =python3-defusedxml # For extract_get.py
39
40
# TODO: remove for offline build
40
41
packages+=curl wget python3-pip
41
42
packages+ =expect
You can’t perform that action at this time.
0 commit comments