{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":709291908,"defaultBranch":"master","name":"bscanf","ownerLogin":"fghzxm","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-10-24T12:28:07.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/32954258?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1698389002.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"c6f635ad4399866f64969b8deb22924e2fc4cce9","ref":"refs/heads/ifdef","pushedAt":"2023-10-27T06:43:22.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"fghzxm","name":null,"path":"/fghzxm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/32954258?s=80&v=4"},"commit":{"message":"Add #ifdef guards","shortMessageHtmlLink":"Add #ifdef guards"}},{"before":null,"after":"1da7c70657f9d2fbae17ce77ce6cf33d0783a1af","ref":"refs/heads/ctype","pushedAt":"2023-10-24T12:28:23.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"fghzxm","name":null,"path":"/fghzxm","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/32954258?s=80&v=4"},"commit":{"message":"Convert char to unsigned before calling ctype.h functions\n\nthe `isspace` and `isdigit` functions, like many other functions from\nctype.h, actually take an `int` as the parameter, and are specified to\nhave undefined behavior when the parameter is not in the range (-1)-255.\nBecause it is implementation-defined whether `char` is signed or\nunsigned (and on most compilers targeting x86 it is actually signed), if\na `char` in the range 128-254 (say, because the format string is encoded\nin a superset of ASCII, including UTF-8) is passed to those functions,\nit could be sign-extended to (-128)-(-2) and cause undefined behavior.\n\nThis patch adds manually conversion from `char` to `unsigned char`\nbefore passing them to ctype.h functions; since `unsigned char`-to-`int`\nconversion is zero-extension, this avoids said undefined behavior.","shortMessageHtmlLink":"Convert char to unsigned before calling ctype.h functions"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADoRZ-GQA","startCursor":null,"endCursor":null}},"title":"Activity ยท fghzxm/bscanf"}