forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite66fcce

Neil Conway
Use memmove() rather than memcpy() in set_var_from_var(). If this function
is asked to assign a variable to itself, it will result in doing amemcpy() on an entirely-overlapping memory range, which results inundefined behavior according to ANSI C. That said, it is unlikely toactually do anything bad on any sane libc, but this keeps valgrind quiet.1 parentd391718 commite66fcce
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
2729 | 2729 |
| |
2730 | 2730 |
| |
2731 | 2731 |
| |
2732 |
| - | |
| 2732 | + | |
2733 | 2733 |
| |
2734 | 2734 |
| |
2735 | 2735 |
| |
|
0 commit comments
Comments
(0)