Per my understanding, FIPS certification only guarantees the crypto implementation does what it is supposed to do and nothing else. If implementation has language-specific vulnerabilities (like buffer overflow, memory management issues), then FIPS is not designed to catch these.