swiftlang/swift

[SR-6736] Enforce 16-bit limit for # of function parameters, # of tuple type element

开放

#49,285 创建于 2018年1月11日

 (6 条评论) (0 个反应) (0 位负责人)Swift (10,719 个派生)batch import
bugcompilergood first issue

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 510 个 PR)

描述

Previous ID SR-6736
Radar None
Original Reporter @DougGregor
Type Bug
Votes 0
Component/s Compiler
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: ea27fac0ee252473c9618a9257498092

Issue Description:

Swift's ABI uses 16 bits to store the number of parameter types in a function type and the number of element types in a tuple type. We should enforce these limits in the parser, so they don't slip through and become crashes at later phases.

贡献者指南