Commit 6dd7c51
authored
Changed
* Changed `IPNetwork` copy assignment implementation to copy-and-swap the internal network.
This change fixes use of memory after being freed in case of self-assignment and provides a strong exception guarantee.
* Removed the temporary variable.IPNetwork copy assignment implementation to copy-and-swap. (#1681)1 parent 91d2058 commit 6dd7c51
1 file changed
+4
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
| 710 | + | |
720 | 711 | | |
721 | | - | |
| 712 | + | |
722 | 713 | | |
723 | 714 | | |
724 | 715 | | |
| |||
727 | 718 | | |
728 | 719 | | |
729 | 720 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 721 | + | |
740 | 722 | | |
741 | | - | |
| 723 | + | |
742 | 724 | | |
743 | 725 | | |
744 | 726 | | |
| |||
0 commit comments