Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000688bareos-core[All Projects] file daemonpublic2016-08-12 17:552016-08-20 09:21
Reportersobolev 
Assigned Tomvwieringen 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinux x86OSOpenSUSEOS Version13.1
Product Version14.2.7 
Target VersionFixed in Version15.2.5 
Summary0000688: "select files by size" feature - ssize_t type overflow on Linux x86
DescriptionInteger overflow in src/findlib/find_one.c:check_size_matching(JCR *jcr, FF_PKT *ff_pkt)
ssize_t in 32-bit linux is int_32
Patch attached.
Steps To Reproduce1. Install bareos-filedaemon on 32-bit linux client (OpenSUSE 13.1)
2. Create 3 test files on client
# ls -lh
total 3.6G
-rw-r--r-- 1 root root 100M Aug 12 15:47 test100
-rw-r--r-- 1 root root 3.0G Aug 12 15:57 test3000
-rw-r--r-- 1 root root 500M Aug 12 15:48 test500
3. Create test fileset
FileSet {
    Name = "Test"
    Include {
        Options {
            size = <200Mb
        }
        File = /home
    }
}
4. Run backup job

Result:
test100 and test3000 backed up.
test500 doesn't.
TagsNo tags attached.
bareos-master: impactyes
bareos-master: actionwill care
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impactyes
bareos-15.2: actionwill care
bareos-14.2: impactyes
bareos-14.2: actionwill care
bareos-13.2: impactyes
bareos-13.2: actionwill care
bareos-12.4: impactyes
bareos-12.4: actionwill care
Attached Filespatch file icon bareos-size-option.patch [^] (1,504 bytes) 2016-08-12 17:55 [Show Content]

- Relationships

-  Notes
There are no notes attached to this issue.

- Related Changesets
bareos: bareos-15.2 df4a2475
Timestamp: 2016-08-12 19:10:39
Author: sobolev_es
Committer: mvwieringen
Ported: N/A
Details ] Diff ]
select files by size feature - ssize_t overflow for 32 bits

Integer overflow in src/findlib/find_one.c:check_size_matching()
ssize_t in 32-bit linux is int_32.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - src/findlib/find_one.c Diff ] File ]

- Issue History
Date Modified Username Field Change
2016-08-12 17:55 sobolev New Issue
2016-08-12 17:55 sobolev File Added: bareos-size-option.patch
2016-08-12 19:12 mvwieringen bareos-master: impact => yes
2016-08-12 19:12 mvwieringen bareos-master: action => will care
2016-08-12 19:12 mvwieringen bareos-15.2: impact => yes
2016-08-12 19:12 mvwieringen bareos-15.2: action => will care
2016-08-12 19:12 mvwieringen bareos-14.2: impact => yes
2016-08-12 19:12 mvwieringen bareos-14.2: action => will care
2016-08-12 19:12 mvwieringen bareos-13.2: impact => yes
2016-08-12 19:12 mvwieringen bareos-13.2: action => will care
2016-08-12 19:12 mvwieringen bareos-12.4: impact => yes
2016-08-12 19:12 mvwieringen bareos-12.4: action => will care
2016-08-12 19:12 mvwieringen Status new => confirmed
2016-08-20 09:20 mvwieringen Changeset attached => bareos bareos-15.2 df4a2475
2016-08-20 09:21 mvwieringen Status confirmed => resolved
2016-08-20 09:21 mvwieringen Fixed in Version => 15.2.5
2016-08-20 09:21 mvwieringen Resolution open => fixed
2016-08-20 09:21 mvwieringen Assigned To => mvwieringen


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker