Re: New Defects reported by Coverity Scan for vim

9 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 22, 2023, 10:07:49 AM4/22/23
to vim...@vim.org

Coverity warns for this problem, which is detected in a Ruby include
file. Probably happens now because of the changes in the CI
configuration.

This cannot be fixed in Vim, I wonder if it should be reported to the
Ruby maintainers? If someone knows where to report, please do so.

> Please find the latest report on new defect(s) introduced to vim found with Coverity Scan.
>
> 1 new defect(s) introduced to vim found with Coverity Scan.
>
>
> New defect(s) Reported-by: Coverity Scan
> Showing 1 of 1 defect(s)
>
>
> ** CID 1472361: Uninitialized variables (UNINIT)
> /usr/include/ruby-3.0.0/ruby/internal/core/rstring.h: 135 in rbimpl_rstring_getmem()
>
>
> ________________________________________________________________________________________________________
> *** CID 1472361: Uninitialized variables (UNINIT)
> /usr/include/ruby-3.0.0/ruby/internal/core/rstring.h: 135 in rbimpl_rstring_getmem()
> 129 }
> 130 else {
> 131 /* Expecting compilers to optimize this on-stack struct away. */
> 132 struct RString retval;
> 133 retval.as.heap.len = RSTRING_EMBED_LEN(str);
> 134 retval.as.heap.ptr = RSTRING(str)->as.ary;
> >>> CID 1472361: Uninitialized variables (UNINIT)
> >>> Using uninitialized value "retval". Field "retval.basic" is uninitialized.
> 135 return retval;
> 136 }
> 137 }
> 138
> 139 RBIMPL_WARNING_POP()
> 140
>
>
> ________________________________________________________________________________________________________
> To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoLUkAngoH61y6ZQKtkTCh6oGAos04AK7AVreJM0K-2FUTg-3D-3DygRz_J0XosSA2E68u8Z-2Bl5GGms2zYHik8sLNCJO662LwsKJuD2W6LejttRisjz0zRPu-2FUFheNmYlB8XDA6fu35BIllcgn-2F38kofBc1ox2bEKrBwFT3soLQ9mygq58WxGWEb4t5icHR7vYkp6Bb7f1CGs2-2BziSHyZz7u6FTqIHMLkgbZ29qkklAQBA6Os-2BkFaYFZyKQFrz3XSMoorGIcLhg4TpHg-3D-3D

--
LETTERS TO THE EDITOR (The Times of London)

Dear Sir,

I am firmly opposed to the spread of microchips either to the home or
to the office.  We have more than enough of them foisted upon us in
public places.  They are a disgusting Americanism, and can only result
in the farmers being forced to grow smaller potatoes, which in turn
will cause massive unemployment in the already severely depressed
agricultural industry.

Yours faithfully,
        Capt. Quinton D'Arcy, J. P.
        Sevenoaks

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages