forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd65a27f
committed
Hi,
I was able to crash postgres 6.5.3 when I did an 'alter user' command.After I started a debugger I found the problem in the timezone handlingofdatetime (my Linux box lost its timezone information, that's how theproblem occurred).Only 7 bytes are reserved for the timezone, without checking forboundaries.Attached is a patch that fixes this problem and emits a NOTICE if atimezone is encountered that is longer than MAXTZLEN bytes, like this:Jeroen van Vianen1 parent469cf43 commitd65a27f
2 files changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
4327 | 4327 | | |
4328 | 4328 | | |
4329 | 4329 | | |
4330 | | - | |
| 4330 | + | |
4331 | 4331 | | |
4332 | 4332 | | |
4333 | 4333 | | |
| |||
4336 | 4336 | | |
4337 | 4337 | | |
4338 | 4338 | | |
4339 | | - | |
| 4339 | + | |
4340 | 4340 | | |
4341 | 4341 | | |
4342 | 4342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
186 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
187 | 205 | | |
188 | 206 | | |
189 | 207 | | |
| |||
0 commit comments
Comments
(0)