Commit 6a3dcd2
committed
Fix possible buffer overrun in hba.c.
Coverty reports a possible buffer overrun in the code that populates the
pg_hba_file_rules view. It may not be a live bug due to restrictions
on options that can be used together, but let's increase MAX_HBA_OPTIONS
and correct a nearby misleading comment.
Back-patch to 10 where this code arrived.
Reported-by: Julian Hsiao
Discussion: https://postgr.es/m/CADnGQpzbkWdKS2YHNifwAvX5VEsJ5gW49U4o-7UL5pzyTv4vTg%40mail.gmail.com1 parent 52b70b1 commit 6a3dcd2
1 file changed
+6
-3
lines changed| 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