]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9912 About Director crash with status dir
authorEric Bollengier <eric@baculasystems.com>
Mon, 6 Mar 2023 16:59:20 +0000 (17:59 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
#3  str_to_int64 (str=0xd5 <Address 0xd5 out of bounds>) at edit.c:72
#4  BDB::bdb_find_next_volume (this=0x7f573403cc28, jcr=jcr@entry=0x7f573400b088, item=<optimized out>, item@entry=-1, InChanger=InChanger@entry=false, mr=mr@entry=0x7f57449796e0) at sql_find.c:586

bacula/src/cats/sql_find.c

index 3456d5a0f9963da05f97a08c834b7e23fbac66ae..41b164c0db20ab4467b8f3d61d70b0824381e982 100644 (file)
@@ -430,7 +430,7 @@ int BDB::bdb_find_next_volume(JCR *jcr, int item, bool InChanger, MEDIA_DBR *mr)
          "EndFile,EndBlock,VolType,VolParts,VolCloudParts,LastPartBytes,"
          "LabelType,LabelDate,StorageId,"
          "Enabled,LocationId,RecycleCount,InitialWrite,"
-         "ScratchPoolId,RecyclePoolId,VolReadTime,VolWriteTime,ActionOnPurge,CacheRetention "
+         "ScratchPoolId,RecyclePoolId,VolReadTime,VolWriteTime,ActionOnPurge,CacheRetention, "
          "VolEncrypted "
          "FROM Media WHERE PoolId=%s AND MediaType='%s' "
          " AND (VolStatus IN ('Full', 'Append', 'Used') OR (VolStatus IN ('Recycle', 'Purged', 'Used') AND Recycle=1)) "