Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int gray_raster_render(....)
- {
- const QT_FT_Outline* outline =
- (const QT_FT_Outline*)params->source;
- ....
- /* return immediately if the outline is empty */
- if ( outline->n_points == 0 || outline->n_contours <= 0 )
- return 0;
- if ( !outline || !outline->contours || !outline->points )
- return ErrRaster_Invalid_Outline;
- ....
- }
- Optimization too early.
- This suspicious code was found in QT project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'outline' pointer was utilized before it was verified against nullptr. Check lines: 1746, 1749. qgrayraster.c 1746
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment