swiftlang/swift

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

オープン

#49,285 opened on 2018/01/11

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (10,719 件のフォーク)batch import
bugcompilergood first issue

Repository metrics

Stars
 (69,989 個のスター)
PR merge metrics
 (平均マージ 8d 17h) (30d で 510 merged PRs)

説明

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.

コントリビューターガイド