commit | 826bf66197ff7d4cfe555c676befd47ca95da239 | [log] [tgz] |
---|---|---|
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | Mon Nov 07 14:33:00 2022 +0800 |
committer | Jiaqing Zhao <jiaqing.zhao@intel.com> | Wed Nov 16 02:13:06 2022 +0000 |
tree | 383d940c545fbc35571c417fb6734a7431867f93 | |
parent | b78184e73b8ad930c3e9e92aae0ddac675e7c521 [diff] |
channel_mgmt: Handle uncaught exception in syncNetworkChannelConfig convertToPrivLimitIndex() throws std::invalid_argument exception when the argument is not a valid privilege string, which is not handled in syncNetworkChannelConfig(). This patch fixes it by skipping the interface when it throws to prevent the ipmi-host service from crashing. Tested: phosphor-ipmi-host is not crashed after manually setting the MaxPrivilege of an interface to an invalid empty string in phosphor-networkd. Change-Id: Ib0361495f1751997fd8fb7e19d9f133888f426d0 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage