bareos: master 2cf9db2d
| Author | Committer | Branch | Timestamp | Parent | |
|---|---|---|---|---|---|
| arogge | arogge | master | 2020-09-30 16:20 | master 9a0d1e75 | Pending |
| Changeset | stored: fix memory corruption in label.cc pointer lifetime in WriteNewVolumeLabelToDev() Previously, in WriteNewVolumeLabelToDev() a copy of the pointer dcr->block was saved and then used as a parameter to EmptyBlock(). This pointer's lifetime ends in dev->SetLabelBlockSize() when the previously written device's block size was larger than the label block size. This patch removes the copy and uses dcr->block directly, so the updated pointer is used. |
||||
| mod - core/src/stored/label.cc | Diff File | ||||