Commit f5ea624
committed
osdc: Update CB_ObjectOperation_decodevals and CB_ObjectOperation_decodekeys to persist temp val
The callback object would create a local variable then save the address of the
local variable in the object which will later be referenced. This leads
to access stack memory that is no longer in scope,
possibly not even in the same thread.
Fixes: https://tracker.ceph.com/issues/72403
Signed-off-by: Edwin Rodriguez <[email protected]>1 parent bafdbd6 commit f5ea624
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
| |||
691 | 692 | | |
692 | 693 | | |
693 | 694 | | |
694 | | - | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
| |||
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
739 | | - | |
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
| |||
0 commit comments