desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #140427
[Bug 1501265] [NEW] unchecked function return value
Public bug reported:
At libmng_display.c:3256
Return value of a function 'mng_reset_object_details' is not captured in other variable and is not checked.
The solution is to capture return value of 'mng_reset_object_details' in iRetcode
if (iRetcode)
return;
At libmng_display.c:3540
Return value of a function 'load_bkgdlayer'is not captured in other variable and is not checked.
The solution is to capture return value of 'load_bkgdlayer'in iRetcode
if (iRetcode)
return;
At libmng_hlapi.c:1434
Return value of a function 'mng_process_eof' is not captured in other variable and is not checked.
The solution is to capture return value of 'mng_process_eof' in iRetcode
if (iRetcode)
return;
For detail information please check the attached patch file.
** Affects: libmng (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "UNCHECKED_FUNC.patch"
https://bugs.launchpad.net/bugs/1501265/+attachment/4479766/+files/UNCHECKED_FUNC.patch
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libmng in Ubuntu.
https://bugs.launchpad.net/bugs/1501265
Title:
unchecked function return value
Status in libmng package in Ubuntu:
New
Bug description:
At libmng_display.c:3256
Return value of a function 'mng_reset_object_details' is not captured in other variable and is not checked.
The solution is to capture return value of 'mng_reset_object_details' in iRetcode
if (iRetcode)
return;
At libmng_display.c:3540
Return value of a function 'load_bkgdlayer'is not captured in other variable and is not checked.
The solution is to capture return value of 'load_bkgdlayer'in iRetcode
if (iRetcode)
return;
At libmng_hlapi.c:1434
Return value of a function 'mng_process_eof' is not captured in other variable and is not checked.
The solution is to capture return value of 'mng_process_eof' in iRetcode
if (iRetcode)
return;
For detail information please check the attached patch file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libmng/+bug/1501265/+subscriptions