Fix length checks in X509_cmp_time to avoid out-of-bounds reads.
[openssl.git] / crypto / bn / vms-helper.c
index ca6e5ba2e0424866b3de81e89458b147cca69bc3..c5cf468da5b355a45a1a2beb1e48054b1edc8764 100644 (file)
@@ -7,7 +7,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  */
 
 #include <stdio.h>
-#include "cryptlib.h"
+#include "internal/cryptlib.h"
 #include "bn_lcl.h"
 
 bn_div_words_abort(int i)
 {
 #ifdef BN_DEBUG
-#if !defined(OPENSSL_NO_STDIO)
-       fprintf(stderr,"Division would overflow (%d)\n",i);
-#endif
-       abort();
+# if !defined(OPENSSL_NO_STDIO)
+    fprintf(stderr, "Division would overflow (%d)\n", i);
+# endif
+    abort();
 #endif
 }