Network

 
AuthorCommitMessageCommit Date
Gerd HeberGerd Heber
7ba4b88b1e4[svn-r20915] Use HDstrncpy and HDstrncat! --gh
Gerd HeberGerd Heber
c6ca4d70c43[svn-r20914] Use HDstrncat and HDstrncpy! --gh
Allen ByrneAllen Byrne
435cc985723[svn-r20907] Original issue was #338. Refactored code to clean up allocations consistantly, completely, check all returns, assign initialization values and handle errors. Tested: local linux
Neil FortnerNeil Fortner
7e0e62434c6[svn-r20883] Purpose: Fix coverity issue 585 Description: Changed variable "c" in processStrData in h5import.c to an int, to match fgetc return value, and removed call to feof, instead checking if c == EOF. Tested: Fedora
Vailin ChoiVailin Choi
f1d175ad0c7[svn-r20882] Fixes for coverity: 1) bug #1679: remove dead code in test/mf.c 2) bug #1680: remove dead code in tools/lib/h5diff_dset.c h5committested.
Raymond LuRaymond Lu
f5e10c05a8c[svn-r20881] Coverity #659 in Run 46: I changed the Line 442 where it tries to check whether FLAG_PRINTED is TRUE. But it had just been set to FALSE. I took out the condition check in the print statement. Tested on jam.
Allen ByrneAllen Byrne
4fe27922364[svn-r20880] Issue 192: Create ret_val var set to -1. Add out label for failures to jump to, return ret_val at bottom. Tested: local linux
Allen ByrneAllen Byrne
481ce4d8911[svn-r20879] Issue 63: change check of return of H5Tget_nmembers to <=0. No need to go futher if call fails as well as empty. Tested: local linux
Allen ByrneAllen Byrne
fd7b171cf5c[svn-r20878] Issue 76: Check if H5Tget_nmembers(type) fails and simply return(FALSE). Also move printf to after check. Tested: local linux
Neil FortnerNeil Fortner
9fd3d262bb2[svn-r20877] Purpose: Fix coverity issue 1723 Description: Modified test_generate in hl/test_image to close file "f" before exit, even if an error occurs. Tested: Fedora
Larry KnoxLarry Knox
9beccbeef6a[svn-r20837] Changed sprintf calls to snprintf with size 1 less than the allocated buffer to address coverity issue #967. Tested on jam.
Dana RobinsonDana Robinson
743daf34582[svn-r20836] Fixed coverity 585 by casting output of fgetc() to a char.
Allen ByrneAllen Byrne
900ceecfd27[svn-r20835] Issue 1180: Change to use strncpy - use base_len + 1 for line 156, use HDstrlen(path) + 1 for line 159
Gerd HeberGerd Heber
b0a58272f50[svn-r20834] Use HDstrncpy and HDstrncat. --gh
Dana RobinsonDana Robinson
adebb2f6a83[svn-r20833] Fixed Coverity 667 and 668 with real integer overflow tests this time.
Neil FortnerNeil Fortner
b1a73a63592[svn-r20832] Purpose: Fix valgrind issues with hl/examples/ex_image2 Description: Modified hl/examples/ex_image2 to free global "gbuf" before exit. Tested: Fedora
Elena PourmalElena Pourmal
e409a7c45c9[svn-r20831] Maintenance: Addressed CID 852 Replaced sprintf with snprintf Platforms tested: jam with gfortran
John MainzerJohn Mainzer
dfcf2e30f3f[svn-r20830] resolved coverity issues 939, 940, 941, 944, and 947. all were complaints about use of sprintf, and in all cases, the buffers used were large enough for all eventualities. Resolved issue by replacing calls to sprintf with calls to snprintf.
Allen ByrneAllen Byrne
854afbd3d88[svn-r20829] Issues 640 and 641: Check return of H5Lget_val(print_udata->fid, path, targbuf, linfo->u.val_size + 1, H5P_DEFAULT) and if error set trgbuf[0] to 0. check if H5Lunpack_elink_val(targbuf, linfo->u.val_size, NULL, &filename, &objname) was successful and allow print. Otherwise filename and objname are not created. (init those to NULL)
Gerd HeberGerd Heber
f399295fcbb[svn-r20828] Use HDstrncpy. --gh
Gerd HeberGerd Heber
5dee221d54b[svn-r20827] Use HDstrncpy. --gh
Neil FortnerNeil Fortner
1eb11816917[svn-r20826] Undo revision 20818, as that issue has already been fixed in the 1.8 branch and trunk (but not coverity branch)
Allen ByrneAllen Byrne
e2442e233b9[svn-r20825] Issue 642: Added check for error and handler with print to stderr and exit.
Elena PourmalElena Pourmal
d2611bbcdc2[svn-r20824] Maintenance: Bug fix: addressed CID 666. Value stored at *expression_len should be used in the call to HD5packFstring to avoid overflow (and unnecessary arithmetic calculation and casting)
Larry KnoxLarry Knox
ee01868ec0b[svn-r20823] Changed HDstrcpy calls to HDstrncpy to address coverity issue #834 and return NULL from CommonFG::getComment on failure to address coverity issue #1720. Tested on jam.
Gerd HeberGerd Heber
bf35dfb7077[svn-r20822] Use HDstrncpy. --gh
Gerd HeberGerd Heber
921ede744f3[svn-r20821] Use HDstrncpy. --gh
Elena PourmalElena Pourmal
d62e4b933b9[svn-r20820] Maintenance: Fixed the bug found by coverity CID 788 There were two problems with this function: 1) it tried to unnecessary free NULL pointer 2) it tried to allocate c_name buffer that is done by H5Pget_class_name Fixed; tested on jam
Allen ByrneAllen Byrne
48023dafac3[svn-r20819] Issue 80: change loop to use int as loop index.
Neil FortnerNeil Fortner
7ae54153ec2[svn-r20818] Purpose: Fix valgrind issues with h5jam Description: Modified h5jam to free strings strdup'd in parse_command_line before exit. Note that they may still not be freed in case of error, due to the widespread use of exit(). Tested: Fedora
Gerd HeberGerd Heber
fd8d8491c92[svn-r20817] Use HDstrncpy and HDstrncat. --gh
Larry KnoxLarry Knox
28fa75677b8[svn-r20816] Replaced one last HDstrcat call with HDstrncat to resolve coverity issue 832. Tested on jam.
Gerd HeberGerd Heber
b356e83f6bd[svn-r20815] Use HDstrncpy. --gh
Allen ByrneAllen Byrne
4ed1d03d249[svn-r20814] Issue 69: Check return value and throw error if negative return. Also free datatype id on error
Vailin ChoiVailin Choi
765a19a9666[svn-r20813] Remove the dead code as listed for coverity bug #1722. h5committested.
Gerd HeberGerd Heber
45ab4103434[svn-r20812] Use HDstrncpy. --gh
Larry KnoxLarry Knox
74040865de9[svn-r20768] Switch to snprintf, HDstrncat, HDstrncpy to address coverity issue 832. Tested jam.
Dana RobinsonDana Robinson
8fbbe511944[svn-r20766] Fixed coverity bug 667 Pulled x * y * z multiply out of malloc operand into a separate n_elements variable to quiet integer overflow warning. No actual integer overflow tests are performed since it's just a test program. Passed on jam
Dana RobinsonDana Robinson
6c97c4f6178[svn-r20765] Fixed coverity bug 668 Pulled x * y * z multiply out of malloc operand into a separate n_elements variable to quiet integer overflow warning. No actual integer overflow tests are performed since it's just a test program but I did add a check that n_elements is >= 1. I also changed an error condition from doing its own close and returning -1 to "goto out;" like the rest of the program. Passed on jam
Peter CaoPeter Cao
ad7c44e890e[svn-r20764] fixed coverity issues: 69, 327, 614, 684, 685, 696, 697, 1681, 967, 826, 660, 80
Neil FortnerNeil Fortner
9bc8c4b95b7[svn-r20763] Purpose: Fix valgrind issues with h5stat Description: Modified h5stat to free "iter" before exit, and free "hand" before exit if parse_command_line exits directly. Tested: Fedora
Neil FortnerNeil Fortner
20982e66e6a[svn-r20762] Purpose: Fix coverity issue 600 Description: Add check for return value of H5O_close in H5Ocopy. Also cleaned up various warnings. Tested: Fedora
Neil FortnerNeil Fortner
b4dfed57883[svn-r20761] Purpose: Fix valgrind issues Description: Free image_data and data as appropriate in test_image. Tested: Fedora
Gerd HeberGerd Heber
17e93f2747a[svn-r20685] Use HDstrncpy. --gh
Vailin ChoiVailin Choi
c6f087e3338[svn-r20684] Fix for coverity bug #1721 which was due to the fix for coverity bug #943.
Allen ByrneAllen Byrne
b61bb190657[svn-r20683] Isues 1309-1333: Changed strcpy/strcat to strncpy/strncat with maximum size expected. Tested: local linux
Peter CaoPeter Cao
f5d0c465110[svn-r20682] fixed coverity: 76, 77, 635, 636, 1164, 1165, 1166, 1121, 1122, 1117, 1343
Gerd HeberGerd Heber
c52df6678df[svn-r20681] Use HDstrncat and HDstrncpy. --gh
Gerd HeberGerd Heber
0c47ac924ad[svn-r20679] Use HDstrncpy. --gh
John MainzerJohn Mainzer
c809b6f79a6[svn-r20678] Repaired coverity issue #598 -- failure to check return value from a call to fstat(), or to tidy up in the event of failure. Tested on wren