Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forbid changing typing flags inside sections
Fix #14317
- Loading branch information
1 parent
85415ad
commit d2aa2f4
Showing
7 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- **Changed:** Removed the ability to change typing flags inside | ||
sections to prevent exploiting a weakness in :cmd:`Print | ||
Assumptions` (`#14395 <https://github.com/coq/coq/pull/14395>`_, | ||
fixes `#14317 <https://github.com/coq/coq/issues/14317>`_, by Gaëtan | ||
Gilbert). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test-suite/output/bug_14317.v → test-suite/bugs/closed/bug_14317.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
Section FooSect. | ||
|
||
Unset Guard Checking. | ||
Fail Unset Guard Checking. | ||
|
||
(* Let bad := fix bad (n:nat) : False := bad n. *) | ||
|
||
Fixpoint loop (n : nat) : nat := loop n. | ||
(* Fixpoint loop (n : nat) : nat := loop n. *) | ||
|
||
(* Set Guard Checking. *) | ||
(* Definition really_bad := bad 0. *) | ||
|
||
End FooSect. | ||
|
||
Print Assumptions loop. | ||
(* Print Assumptions loop. *) | ||
(* Print Assumptions really_bad. TODO *) |
This file was deleted.
Oops, something went wrong.