{"action":"closed","issue":{"url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/412","labels_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/412/comments","events_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/412/events","html_url":"https://github.com/ARMmbed/mbedtls/issues/412","id":129155223,"number":412,"title":"Exit value truncated in example code","user":{"login":"sbutcher-arm","id":8195775,"avatar_url":"https://avatars.githubusercontent.com/u/8195775?v=3","gravatar_id":"","url":"https://api.github.com/users/sbutcher-arm","html_url":"https://github.com/sbutcher-arm","followers_url":"https://api.github.com/users/sbutcher-arm/followers","following_url":"https://api.github.com/users/sbutcher-arm/following{/other_user}","gists_url":"https://api.github.com/users/sbutcher-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/sbutcher-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbutcher-arm/subscriptions","organizations_url":"https://api.github.com/users/sbutcher-arm/orgs","repos_url":"https://api.github.com/users/sbutcher-arm/repos","events_url":"https://api.github.com/users/sbutcher-arm/events{/privacy}","received_events_url":"https://api.github.com/users/sbutcher-arm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/mbedtls/labels/mirrored","name":"mirrored","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T14:10:36Z","updated_at":"2016-01-28T08:02:53Z","closed_at":"2016-01-28T08:02:53Z","body":"Posix defines exit codes can only be 8-bits (see here: http://pubs.opengroup.org/onlinepubs/9699919799/functions/exit.html) yet the example program programs/pkey/rsa_verify.c passes back the return value of mbedtls_rsa_pkcs1_verify().\r\n\r\nPotentially, some values returned by the verify function could return an exit code of 0, indicating success, and yet be reporting a failure.\r\n\r\nReported by email.\r\n"}}