No description
Find a file
Jeff Epler 3348622ec6 Fix -fsanitize=undefined diagnostics
Fixes the following diagnostics:
```
bigint.c:631:39: runtime error: left shift of 162 by 24 places cannot be represented in type 'int'
sha1.c:124:42: runtime error: left shift of 152 by 24 places cannot be represented in type 'int'
```

Directs the sanitizer not to instrument the function where this diagnostic
otherwise occurs:
```
crypto_misc.c:131:5: runtime error: load of address 0x7ffd83a8633c with insufficient space for an object of type 'unsigned char'
```
.. this function deliberately reads memory in a way that is undefined
under the C standard, but is a semi-recognized technique to maybe supplement
a CSPRNG entropy pool; blindly removing it is the riskier option, a la
https://www.debian.org/security/2008/dsa-1571

These changes fix all the problems seen in axtls when running the testsuite
of a popular embedded python implementation on a linux amd64 desktop
with gcc 8.3.0 -fsanitize=undefined.
2021-05-09 21:28:29 -05:00
axtlswrap added -w command line option for axhttd 2011-07-29 10:15:33 +00:00
bindings * SNI added 2016-12-12 19:27:38 +00:00
config makefile.conf: Accept CFLAGS_EXTRA. 2017-06-11 00:07:18 +03:00
crypto Fix -fsanitize=undefined diagnostics 2021-05-09 21:28:29 -05:00
docsrc added shutdown to a CGI socket close. 2009-11-15 21:41:57 +00:00
httpd Now include os_port.h in tls1.h, but removed ax_malloc and friends 2016-07-05 19:54:05 +00:00
samples En-masse other changes to minimize size and make embeddable into uPy. 2017-06-11 00:07:17 +03:00
ssl ssl/tls1.c: If underlying stream returned EAGAIN, return SSL_EAGAIN. 2017-10-29 19:52:01 +02:00
www * Basic constraint/key usage v3 extensions now supported 2016-12-30 21:59:50 +00:00
.gitignore Add .gitignore . 2017-06-11 00:07:17 +03:00
Makefile * SNI added 2016-12-12 19:27:38 +00:00
README new trunk 2007-03-14 12:03:51 +00:00

See www/index.html for the README, CHANGELOG, LICENSE and other notes.