Skip to content
Snippets Groups Projects
Commit 6b80071a authored by Tamar Christina's avatar Tamar Christina
Browse files

gensupport: Don't segfault on empty attrs list

Currently we segfault when len == 0 for an attribute list.

essentially [cons: =0, 1, 2, 3; attrs: ] segfaults but should be equivalent to
[cons: =0, 1, 2, 3] and [cons: =0, 1, 2, 3; attrs:].  This fixes it by just
returning early and leaving it to the validators whether this should error out
or not.

gcc/ChangeLog:

	* gensupport.cc (conlist): Support length 0 attribute.
parent 8787b195
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment