[Issue 21085] [glue] Only 9999 "hidden identifiers" can be generated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 28 12:31:22 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21085

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11469 "[critical bugfix] Increase size for temporary
HID identifier" was merged into stable:

- b0b774c999e07aa6b005f2d17eab7c048cd07c94 by Stefan Koch:
  Fix Issue 21085 - Increase size for temporary HID identifier

  For hidden parameters, a unique identifier is generated within the backend
  of the form __HID%d.
  For that string "__HID".length + 4 + "\0".length bytes were allocated,
  Making 9999 hidden parameters the highest number which could be used.
  This change removes the assumption that there can be only 9999 hidden
parameters.
  And extends the buffer to the maximal number of 10 digits which is the maxmal
number that can be represented with a 32bit unsinged integer.

https://github.com/dlang/dmd/pull/11469

--


More information about the Digitalmars-d-bugs mailing list