Merge pull request #107472 from CertainLach/increase-kdeinit-environ-limit

kinit: increase environment limit
This commit is contained in:
Thomas Tuegel 2021-01-02 05:42:00 -06:00 committed by GitHub
commit ff47554518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ index f2db3e9..4ff2602 100644
if (read(0, &len, sizeof(unsigned)) == sizeof(unsigned)
- && len && len < (1 << 12)) {
+ && len) {
+ if (len >= (1 << 14)) {
+ if (len >= (1 << 20)) {
+ fprintf(stderr, "%s: exceeded environment length limit", argv[0]);
+ return 1;
+ }