x/ref: cgo Errors escape non-utf8 runes

Java in particular is extremely upset by characters like 0xfe.
So much so that it will crash, so we are going to replace such
invalid characters with the Unicode unknown character.

In order to help find out the root cause of these invalid
characters, I have added:
- panic on normal strings if they have an invalid char. This
  should never actually happen, so it's worth panicking.
- vlog.Errorf for the error messages and stacks. We escape these
  for now, since we know of multiple errors that might lead to an
  invalid character in these strings.

Change-Id: Ic1e0f19c6f62324dd7bf56ec6aee5a9cd07eab74
1 file changed
tree: 35d520094deb14108040e71cfdda319d4f08091d
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.