www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18084] New: tempCString buffer size is versioned

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

          Issue ID: 18084
           Summary: tempCString buffer size is versioned
           Product: D
           Version: D2
          Hardware: All
               URL: https://forum.dlang.org/post/guyhpasgjqvdcngawkvv foru
                    m.dlang.org
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

tempCString code is suspicious:
https://github.com/dlang/phobos/blob/master/std/internal/cstring.d#L221
If unittest-versioned function calls release-versioned tempCString, it will
corrupt the stack, which depends on template emission strategy.

--
Dec 15 2017