@@ -139,3 +139,62 @@ def test_ndrdump_fuzzed_clusapi_QueryAllValues(self):
139
139
except BlackboxProcessError as e :
140
140
self .fail (e )
141
141
self .assertEqual (actual , expected )
142
+
143
+ def test_ndrdump_fuzzed_IOXIDResolver_ResolveOxid (self ):
144
+ expected = '''pull returned Character Conversion Error
145
+ '''
146
+ try :
147
+ actual = self .check_exit_code (
148
+ 'ndrdump IOXIDResolver ResolveOxid out ' + \
149
+ '--base64-input --input=' + \
150
+ 'c87PMf7CBAUAAAAADgQMBASjfPqKw0KPld6DY87PMfQ=' ,
151
+ 2 )
152
+ except BlackboxProcessError as e :
153
+ self .fail (e )
154
+ self .assertRegex (actual .decode ('utf8' ), expected + "$" )
155
+
156
+ def test_ndrdump_fuzzed_IOXIDResolver_ResolveOxid2 (self ):
157
+ expected = '''pull returned Buffer Size Error
158
+ '''
159
+ try :
160
+ actual = self .check_exit_code (
161
+ 'ndrdump IOXIDResolver ResolveOxid2 out ' + \
162
+ '--base64-input --input=' + \
163
+ 'AAAAAQ0K9Q0AAAAAAAAAA6ampqampqampqampqampqampqampqamNAAAAAAtNDQ=' ,
164
+ 2 )
165
+ except BlackboxProcessError as e :
166
+ self .fail (e )
167
+ self .assertRegex (actual .decode ('utf8' ), expected + "$" )
168
+
169
+ def test_ndrdump_fuzzed_IOXIDResolver_ServerAlive2 (self ):
170
+ expected = b'''pull returned Success
171
+ WARNING! 46 unread bytes
172
+ [0000] 0D 36 0A 0A 0A 0A 0A 00 00 00 00 00 00 00 03 00 .6...... ........
173
+ [0010] 00 00 01 00 00 33 39 36 31 36 31 37 37 36 38 34 .....396 16177684
174
+ [0020] 32 34 FC 85 AC 49 0B 61 87 0A 0A 0A F5 00 24...I.a ......
175
+ ServerAlive: struct ServerAlive
176
+ out: struct ServerAlive
177
+ result : DOS code 0x01000000
178
+ dump OK
179
+ '''
180
+ try :
181
+ actual = self .check_output (
182
+ 'ndrdump IOXIDResolver ServerAlive out ' + \
183
+ '--base64-input --input=' + \
184
+ 'AAAAAQ02CgoKCgoAAAAAAAAAAwAAAAEAADM5NjE2MTc3Njg0MjT8haxJC2GHCgoK9QA=' )
185
+ except BlackboxProcessError as e :
186
+ self .fail (e )
187
+ self .assertEqual (actual , expected )
188
+
189
+ def test_ndrdump_fuzzed_IRemoteActivation_RemoteActivation (self ):
190
+ expected = '''pull returned Buffer Size Error
191
+ '''
192
+ try :
193
+ actual = self .check_exit_code (
194
+ 'ndrdump IRemoteActivation RemoteActivation out ' + \
195
+ '--base64-input --input=' + \
196
+ 'AAAAAQAAAAAAAABKAAD/AAAAAP4AAAAAAAAASgAAAAAAAAABIiIjIiIiIiIiIiIiIiMiAAAAAAD/AAAAAAAA' ,
197
+ 2 )
198
+ except BlackboxProcessError as e :
199
+ self .fail (e )
200
+ self .assertRegex (actual .decode ('utf8' ), expected + "$" )
0 commit comments