Fix CID 1114608 Store virtualsize in the the virtualsize column
Fix false positve in coverity, simple rewrite.
Fix CID 1114609 Log the correct number
Fix CID 1114611 Check the right variable
Fix overflow before widening issues reported by Coverity