Menu

#504 Code issues reported by PVS Studio

unspecified
open
nobody
Internal (121)
1
2021-12-23
2021-11-13
No

report:
https://www.fly-server.ru/pvs-studio/owlnext/

Date: 11/13/21 11:43:50
PVS-Studio Version: 7.15.53142.3184
Total Warnings (GA): 1107
Total Warnings (OP): 341
Total Warnings (64): 63

Related

Bugs: #528
Discussion: Preparing OWLNext 7.0.6 and 6.44.16
Feature Requests: #54
News: 2021/12/owlnext-706-and-64416-updates
Wiki: OWLNext_Stable_Releases

Discussion

  • Ognyan Chernokozhev

    Good job on making all those fixes. Does it make sense to transfer some of them to the 6.44 and 7.0 branches?

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2021-11-15

    Thanks, Jogy!

    Does it make sense to transfer some of [the fixes] to the 6.44 and 7.0 branches?

    Yes, some of the issues warrant fixes to the release branches, provided they don't break ABI compatibility. That said, most of the issues seem unlikely to have any effect. Please review and give your opinion!

    There remain many issues in the report yet to be reviewed. Perhaps you (or anyone else) can spot important issues that I have overlooked so far. Note that I have not considered issues in the extension libraries at all. I have only looked at issues in the core.

     

    Last edit: Vidar Hasfjord 2021-12-19
  • Ognyan Chernokozhev

    Regarding [r5608]: Wouldn't it be faster and more self-documenting to make use of TSize::CreateFromPackedExtents instead of creating a temporary TPoint object that is then converted to a TSize?

     

    Related

    Commit: [r5608]

  • Vidar Hasfjord

    Vidar Hasfjord - 2021-11-16

    Regarding [r5608]: Wouldn't it be faster and more self-documenting to make use of TSize::CreateFromPackedExtents

    Yes, good point! (Or good size, I should say!)

    I have committed your suggested improvement [r5624].

    But note that CreateFromPackedExtents is not available in 6.44 and 7.0. In 7.1 (trunk) it replaces the converting constructor TSize (DWORD packedExtents).

    PS. Good work on merging fixes to 6.44. I'll update the version numbers for the 6.44 and 7.0 branches, and prepare for new releases.

     

    Related

    Commit: [r5608]
    Commit: [r5624]

  • pavel_pimenov

    pavel_pimenov - 2021-12-18

    update report https://www.fly-server.ru/pvs-studio/owlnext/

    Date: 12/18/21 18:19:49
    PVS-Studio Version: 7.16.55368.3308
    Total Warnings (GA): 1064
    Total Warnings (OP): 341
    Total Warnings (64): 61
    Fails/Info: 1

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2021-12-18
    • labels: --> Internal
    • summary: PVS Studio report --> Code issues reported by PVS Studio
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2021-12-23

    Fixes for the selected issues listed in my earlier post have now been released in 6.44.16 and 7.0.6.

    https://sourceforge.net/p/owlnext/bugs/504/#be75

    Since this is only a small subset of the issues reported by PVS Studio, I will leave this ticket open.

    Please feel free to review the report and fix remaining issues.

     

Log in to post a comment.