forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit82c117c
committed
Fix pnstrdup() to not memcpy() the maximum allowed length.
The previous behaviour was dangerous if the length passed wasn't thesize of the underlying buffer, but the maximum size of the underlyingbuffer.Author: Andres FreundDiscussion:https://postgr.es/m/20161003215524.mwz5p45pcverrkyk@alap3.anarazel.de1 parent8a24179 commit82c117c
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
1086 | 1087 |
| |
1087 | 1088 |
| |
1088 | 1089 |
| |
1089 |
| - | |
| 1090 | + | |
1090 | 1091 |
| |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1091 | 1095 |
| |
1092 | 1096 |
| |
| 1097 | + | |
1093 | 1098 |
| |
1094 | 1099 |
| |
1095 | 1100 |
| |
|
0 commit comments
Comments
(0)