[3764] in BarnOwl Developers
New Defects reported by Coverity Scan for barnowl/barnowl
daemon@ATHENA.MIT.EDU (scan-admin@coverity.com)
Wed Apr 23 02:34:50 2014
To: undisclosed-recipients:;
Date: Tue, 22 Apr 2014 23:34:44 -0700
From: scan-admin@coverity.com
Hi,
Please find the latest report on new defect(s) introduced to barnowl/barnowl found with Coverity Scan.
Defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 43717: Dereference null return value (NULL_RETURNS)
/tester.c: 99 in main()
/tester.c: 98 in main()
** CID 43718: Dereference null return value (NULL_RETURNS)
________________________________________________________________________________________________________
*** CID 43717: Dereference null return value (NULL_RETURNS)
/tester.c: 99 in main()
93 perl_destruct(owl_global_get_perlinterp(&g));
94 perl_free(owl_global_get_perlinterp(&g));
95 /* probably not necessary, but tear down the screen */
96 endwin();
97 delscreen(screen);
98 fclose(rnull);
>>> CID 43717: Dereference null return value (NULL_RETURNS)
>>> Dereferencing a pointer that might be null "wnull" when calling "fclose".
99 fclose(wnull);
100 return status;
101 }
102
103 int owl_regtest(void) {
104 numtests = 0;
/tester.c: 98 in main()
92 out:
93 perl_destruct(owl_global_get_perlinterp(&g));
94 perl_free(owl_global_get_perlinterp(&g));
95 /* probably not necessary, but tear down the screen */
96 endwin();
97 delscreen(screen);
>>> CID 43717: Dereference null return value (NULL_RETURNS)
>>> Dereferencing a pointer that might be null "rnull" when calling "fclose".
98 fclose(rnull);
99 fclose(wnull);
100 return status;
101 }
102
103 int owl_regtest(void) {
________________________________________________________________________________________________________
*** CID 43718: Dereference null return value (NULL_RETURNS)
/tester.c: 62 in main()
56 goto out;
57 }
58
59 owl_global_complete_setup(&g);
60 owl_global_setup_default_filters(&g);
61
>>> CID 43718: Dereference null return value (NULL_RETURNS)
>>> Dereferencing a pointer that might be null "owl_global_get_filter(&g, "all")" when calling "owl_view_create".
62 owl_view_create(owl_global_get_current_view(&g), "main",
63 owl_global_get_filter(&g, "all"),
64 owl_global_get_style_by_name(&g, "default"));
65
66 owl_function_firstmsg();
67
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/1962?tab=Overview
To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py