From: Rich Felker Date: Fri, 24 Apr 2020 14:35:01 +0000 (-0400) Subject: fix undefined behavior in wcsto[ld] family functions X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f3ecdc1043f44468b2db794b259c5f66737f6f84;hp=f3ecdc1043f44468b2db794b259c5f66737f6f84;p=musl fix undefined behavior in wcsto[ld] family functions analogous to commit b287cd745c2243f8e5114331763a5a9813b5f6ee but for the custom FILE stream type the wcstol and wcstod family use. __toread could be used here as well, but there's a simple direct fix to make the buffer pointers initially valid for subtraction, so just do that to avoid pulling in stdio exit code in programs that don't use stdio. ---