- Notifications
You must be signed in to change notification settings - Fork28
Commit6d493e1
committed
Add an Assert that enum_cmp_internal() gets passed an FmgrInfo pointer.
If someone were to try to call one of the enum comparison functionsusing DirectFunctionCallN, it would very likely seem to work, becauseonly in unusual cases does enum_cmp_internal() need to access thetypcache. But once such a case occurred, code like that would crashwith a null pointer dereference. To make an oversight of that sortless likely to escape detection, add a non-bypassable Assert thatfcinfo->flinfo isn't NULL.Discussion:https://postgr.es/m/25226.1487900067@sss.pgh.pa.us1 parentc29aff9 commit6d493e1
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
266 | 275 |
| |
267 | 276 |
| |
268 | 277 |
| |
| |||
381 | 390 |
| |
382 | 391 |
| |
383 | 392 |
| |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
| 393 | + | |
390 | 394 |
| |
391 | 395 |
| |
392 | 396 |
| |
|
0 commit comments
Comments
(0)