Commit e9ac890
committed
Fix buggy config string transmitting ('bcsN')
The bcs0, bcs1, and bcs2 commands are used to transmit an info string
that has more than a certain length. The old code chopped them into
pieces based on the original length rather than the escaped length and
provided only a fixed amount of overhead for escape characters. Turns
out the overhead wasn't enough for real-life use cases (there are a lot
of backslashes due to infostring separators) and so the command to send
the serverinfo configstring would sometimes overflow and be silently
dropped.
Fix this by chopping up the string based on the escaped length.1 parent e58c771 commit e9ac890
1 file changed
+41
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
85 | 124 | | |
86 | 125 | | |
87 | | - | |
| 126 | + | |
88 | 127 | | |
89 | | - | |
90 | 128 | | |
91 | 129 | | |
92 | 130 | | |
| |||
101 | 139 | | |
102 | 140 | | |
103 | 141 | | |
104 | | - | |
105 | | - | |
106 | 142 | | |
107 | 143 | | |
108 | 144 | | |
| |||
117 | 153 | | |
118 | 154 | | |
119 | 155 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
0 commit comments