Last change
on this file since cf34e82 was
2fa0237,
checked in by Michael Brooks <mlbrooks@…>, 14 months ago
|
Fix cstring input length interpretation issue that had a buffer overflow case.
The cases added to the manipulatorsInput test are runnable against an old libcfa build. In this setup, the test fails with an illustration of the bug.
The testing in this commit drives the following inputs through a length-8 buffer.
The obviously-missing cases, like 1234567, will be added later.
They will accompany fixes for further bugs not solved yet.
|
-
Property mode set to
100644
|
File size:
996 bytes
|
Line | |
---|
1 | pre1 "123456", canary ok |
---|
2 | pre2a "1234567", exception occurred, canary ok |
---|
3 | pre2b "89", canary ok |
---|
4 | 1 yyyyyyyyyyyyyyyyyyyy |
---|
5 | 2 abcxxx |
---|
6 | 3 abcxxx |
---|
7 | 4 aaaaaaaa |
---|
8 | 5 aaaaaaaa |
---|
9 | 6 aabbccbb |
---|
10 | 7 dddwww |
---|
11 | 8 dddwww |
---|
12 | 9 dddwww |
---|
13 | 10 aaaaaaaa |
---|
14 | 11 wwwwwwww |
---|
15 | 12 wwwwwwww |
---|
16 | 13 wwwwwwww |
---|
17 | 1 yyyyyyyyyyyyyyyyyyyy |
---|
18 | 2 abcxxx |
---|
19 | 3 abcxxx |
---|
20 | 4 aaaaaaaa |
---|
21 | 5 aaaaaaaa |
---|
22 | 6 aabbccbb |
---|
23 | 7 dddwww |
---|
24 | 8 dddwww |
---|
25 | 9 dddwww |
---|
26 | 10 aaaaaaaa |
---|
27 | 11 wwwwwwww |
---|
28 | 12 wwwwwwww |
---|
29 | 13 wwwwwwww |
---|
30 | a |
---|
31 | a |
---|
32 | -1 |
---|
33 | 15 |
---|
34 | 15 |
---|
35 | 15 |
---|
36 | 255 |
---|
37 | 15 |
---|
38 | 15 |
---|
39 | 15 |
---|
40 | 255 |
---|
41 | 15 |
---|
42 | 15 |
---|
43 | 15 |
---|
44 | 255 |
---|
45 | 15 |
---|
46 | 15 |
---|
47 | 15 |
---|
48 | 255 |
---|
49 | 15 |
---|
50 | 15 |
---|
51 | 15 |
---|
52 | 255 |
---|
53 | 15 |
---|
54 | 15 |
---|
55 | 15 |
---|
56 | 255 |
---|
57 | 15 |
---|
58 | 15 |
---|
59 | 15 |
---|
60 | 255 |
---|
61 | 15 |
---|
62 | 15 |
---|
63 | 15 |
---|
64 | 255 |
---|
65 | 15 |
---|
66 | 15 |
---|
67 | 15 |
---|
68 | 255 |
---|
69 | 15 |
---|
70 | 15 |
---|
71 | 15 |
---|
72 | 3.5 |
---|
73 | 345.6 |
---|
74 | 345.6 |
---|
75 | 345.6 |
---|
76 | 3.5 |
---|
77 | 345.6 |
---|
78 | 345.6 |
---|
79 | 345.6 |
---|
80 | 3.5 |
---|
81 | 345.6 |
---|
82 | 345.6 |
---|
83 | 345.6 |
---|
84 | 3.5+3.5i |
---|
85 | 345.6+345.6i |
---|
86 | 345.6+345.6i |
---|
87 | 345.6+345.6i |
---|
88 | 3.5+3.5i |
---|
89 | 345.6+345.6i |
---|
90 | 345.6+345.6i |
---|
91 | 345.6+345.6i |
---|
92 | 3.5+3.5i |
---|
93 | 345.6+345.6i |
---|
94 | 345.6+345.6i |
---|
95 | 345.6+345.6i |
---|
96 | 25 |
---|
97 | -25 |
---|
98 | 42798 |
---|
99 | 1402432282 |
---|
100 | 1505850196993244515 |
---|
101 | 394749758663249135511342 |
---|
102 | 12935154696204706112391834394 |
---|
103 | 423859149128410414395372834994551 |
---|
104 | 13889016598639747063234935497057631587 |
---|
105 | 170141183460469231731687303715884105727 |
---|
106 | -1 |
---|
107 | 1 |
---|
108 | -1 |
---|
109 | 1234567890123456789 |
---|
110 | -1234567890123456789 |
---|
Note: See
TracBrowser
for help on using the repository browser.