User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    Thanks, replaced the GSL_ERROR_VAL lines with exit(GSL_ENOMEM) for now and that works.

  • Posted a comment on discussion General Discussion on cppcheck

    This code generates two errors in particular: gsl_sum_levin_u_workspace *gsl_sum_levin_u_alloc (size_t n) { gsl_sum_levin_u_workspace *w; w = (gsl_sum_levin_u_workspace *) malloc (sizeof (gsl_sum_levin_u_workspace)); w->q_num = (double *) malloc (n * sizeof (double)); if (w->q_num == NULL) { free (w); /* constructor error, prevent memory leak */ GSL_ERROR_VAL ("failed to allocate space for q_num", GSL_ENOMEM, 0); } w->q_den = (double *) malloc (n * sizeof (double)); if (w->q_den == NULL) { free (w->q_num);...

  • Posted a comment on ticket #27 on Flawfinder

    Duplicate of https://sourceforge.net/p/flawfinder/patches/4/

  • Created ticket #27 on Flawfinder

    Typos in flawfinder.py

  • Created ticket #26 on Flawfinder

    Abnormal termination on valgrind

  • Posted a comment on discussion Development on cppcheck

    Ok, thanks, that works. I did not see this in the manual.

  • Modified a comment on discussion Development on cppcheck

    The command man timercmp lists the construct as valid, hence I believe this to be a false positive: vely-master/fcli.c:494:42: error: syntax error: <) [syntaxError] if (timercmp (&elapsed, &(fc_l->tout), < )) { ^ To replicate: wget https://github.com/velydev/vely/archive/refs/heads/master.zip unzip -q master.zip cppcheck -i v1.c --enable=all --output-file=vely.cppcheck vely-master/ grep -C2 "error:" vely.cppcheck Not sure why the -i v1.c is necessary, perhaps it is an infinite recursion. Cppcheck...

  • Posted a comment on discussion Development on cppcheck

    The command man timercmp lists the construct as valid, hence I believe this to be a false positive: vely-master/fcli.c:494:42: error: syntax error: <) [syntaxError] if (timercmp (&elapsed, &(fc_l->tout), < )) { ^ To replicate: wget https://github.com/velydev/vely/archive/refs/heads/master.zip unzip -q master.zip cppcheck -i v1.c --enable=all --output-file=vely.cppcheck vely-master/ grep -C2 "error:" vely.cppcheck Not sure why the -i v1.c is necessary, perhaps it is an infinite recursion.

View All

Personal Data

Username:
figaro777
Joined:
2010-08-18 10:43:44

Projects

  • No projects to display.

Personal Tools