You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused because of this code being generated:
T4_=hash__tdel_7(x.p->data, x.len);
Nim Version
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-08-31
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: 5211a47
active boot switches: -d:release --gc:markAndSweep
Current Standard Output Logs
t.nim:4:39: runtime error: member access within null pointer of type'tySequence__6H5Oh5UUvVCLiakt9aTwtUQ_Content' (aka 'struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ_Content')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior t.nim:4:39 in
0
What happened?
This bug is observed a lot in the stdlib where
openArray
is used instead ofseq
such as in==
orhash
.This is caused because of this code being generated:
Nim Version
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-08-31
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: 5211a47
active boot switches: -d:release --gc:markAndSweep
Current Standard Output Logs
Expected Standard Output Logs
Possible Solution
cstring(x) converter handles empty strings correctly.
Additional Information
Build command:
The text was updated successfully, but these errors were encountered: