forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6a3dcd2
committed
Fix possible buffer overrun in hba.c.
Coverty reports a possible buffer overrun in the code that populates thepg_hba_file_rules view. It may not be a live bug due to restrictionson options that can be used together, but let's increase MAX_HBA_OPTIONSand correct a nearby misleading comment.Back-patch to 10 where this code arrived.Reported-by: Julian HsiaoDiscussion:https://postgr.es/m/CADnGQpzbkWdKS2YHNifwAvX5VEsJ5gW49U4o-7UL5pzyTv4vTg%40mail.gmail.com1 parent52b70b1 commit6a3dcd2
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2218 | 2218 |
| |
2219 | 2219 |
| |
2220 | 2220 |
| |
2221 |
| - | |
2222 |
| - | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
2223 | 2225 |
| |
2224 |
| - | |
| 2226 | + | |
2225 | 2227 |
| |
2226 | 2228 |
| |
2227 | 2229 |
| |
| |||
2327 | 2329 |
| |
2328 | 2330 |
| |
2329 | 2331 |
| |
| 2332 | + | |
2330 | 2333 |
| |
2331 | 2334 |
| |
2332 | 2335 |
| |
|
0 commit comments
Comments
(0)