- Notifications
You must be signed in to change notification settings - Fork5
Commit80986e8
committed
Avoid returning undefined bytes in chkpass_in().
We can't really fix the problem that the result is defined to depend onrandom(), so it is still going to fail the "unstable input conversion"test in parse_type.c. However, we can at least satify valgrind. (Itlooks like this code used to be valgrind-clean, actually, until somebodydid a careless s/strncpy/strlcpy/g on it.)In passing, let's just make real sure that chkpass_out doesn't overrunits output buffer.No need for backpatch, I think, since this is just to satisfy debuggingtools.Asif Naeem1 parent33e879c commit80986e8
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
|
0 commit comments
Comments
(0)