mirror of
https://github.com/taigrr/gopher-os
synced 2026-04-14 09:31:14 -07:00
When converting strings to []byte so that they can be used with the tty io.Writer interface Go calls a runtime method called "stringtoslicebyte". If the input length exceeds a particular size then this method will allocate a new []byte and copy the data into it. This obviously causes our kernel to crash. To fix this, all early_fmt functions have been changed to iterate any string arguments and output them to the active TTY one byte at a time.