On Fri, May 19, 2017 at 4:32 AM, Jason Merrill <ja...@redhat.com> wrote:
> A patch I've been putting together ran into strange memory corruption
> issues which turned out to be because the calculation in
> make_tree_vec_stat was overflowing and allocating a small TREE_VEC
> instead of a large one.  This assert should work as a simple sanity
> check.

Hmm, looks like 'length' should be size_t?  Then nothing can overflow anymore
(on hosts with size_t 64bit and int 32bit)

> Tested x86_64-pc-linux-gnu, OK for trunk?

Thanks,
Richard.

Reply via email to