commit | 45b1b13506d17540cefdc842487a4be939a183c8 | [log] [tgz] |
---|---|---|
author | James Feist <james.feist@linux.intel.com> | Thu Feb 13 16:14:13 2020 -0800 |
committer | James Feist <james.feist@linux.intel.com> | Fri Feb 14 00:40:03 2020 +0000 |
tree | 4a8ba1a39792e4dd05d48c547624843bafb5ced4 | |
parent | f9dcc11cc7f71426078fece76e5fb8eef0eec430 [diff] |
Fix off by 1 error i can increment > qs_kv_size with some inputs. Fix this by incrementing earlier in the loop instead so we don't have to increment after the loop and possibly go past max. Tested: Used bad string and no longer saw segfault Change-Id: Ia68cd9b24e9a0b16646197983c513d78df2239ed Signed-off-by: James Feist <james.feist@linux.intel.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the prime256v1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.