February 23, 2015 [dmd-internals] [D-Programming-Language/dmd] 500501: Use correct size for sizeTy[Tvector] | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 500501cf03d764e7fa6756ba3268bcfcee5e4866 https://github.com/D-Programming-Language/dmd/commit/500501cf03d764e7fa6756ba3268bcfcee5e4866 Author: Safety0ff <safety0ff.dev@gmail.com> Date: 2015-02-23 (Mon, 23 Feb 2015) Changed paths: M src/mtype.c Log Message: ----------- Use correct size for sizeTy[Tvector] This bug causes https://github.com/ldc-developers/ldc/issues/825 : When using ```Type::nullAttributes``` to create a new ```TypeVector```, it will read past the end of the source ```TypeVector``` if it was allocated using ```new TypeVector``` (i.e. the actual size is used for allocation) since ```sizeof(TypeVector)``` is less than ```sizeof(TypeBasic)```. Commit: 76b2be5e9a5c3d6e64ee007b8c94f8041f948253 https://github.com/D-Programming-Language/dmd/commit/76b2be5e9a5c3d6e64ee007b8c94f8041f948253 Author: Daniel Murphy <yebblies@gmail.com> Date: 2015-02-23 (Mon, 23 Feb 2015) Changed paths: M src/mtype.c Log Message: ----------- Merge pull request #4436 from Safety0ff/patch-1 Use correct size for sizeTy[Tvector] Compare: https://github.com/D-Programming-Language/dmd/compare/fcbe578f2f2c...76b2be5e9a5c |
Copyright © 1999-2021 by the D Language Foundation