---
cases:
  - note: cryptox509parsecertificates/invalid DER or PEM data, b64
    query: data.generated.p = x
    modules:
      - |
        package generated

        certs := "YmFkc3RyaW5n"

        p := __local2__ if {
        	__local4__ = data.generated.certs
        	crypto.x509.parse_certificates(__local4__, __local3__)
        	__local0__ = __local3__
        	__local2__ = [__local1__ | __local1__ = __local0__[_].Subject.CommonName]
        }
    want_error_code: eval_builtin_error
    want_error: "x509: malformed certificate"
    strict_error: true
