Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libwebsockets-4.1.4/include/libwebsockets.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/abstract.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/protocols.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/protocols/smtp.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/transports.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/transports/raw-skt.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/abstract/transports/unit-test.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-adopt.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-async-dns.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-bb-i2c.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-bb-spi.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-button.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-callbacks.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-cgi.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-client.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-context-vhost.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-dbus.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-detailed-latency.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-diskcache.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-display.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-dll2.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-dsh.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-eventlib-exports.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-freertos.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-fts.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-genaes.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-gencrypto.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-genec.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-genhash.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-genrsa.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-gpio.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-http.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-i2c.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ili9341-spi.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-jose.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-jwe.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-jwk.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-jws.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-led.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-lejp.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-logs.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-lwsac.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-mqtt.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-netdev.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-network-helper.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-optee.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-protocols-plugins.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-purify.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-pwm.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-retry.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ring.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-secure-streams-client.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-secure-streams-policy.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-secure-streams.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-sequencer.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-service.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-settings.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-sha1-base64.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-smd.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-spa.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-spi.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ssd1306-i2c.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-state.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-stats.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-struct.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-system.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-test-sequencer.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-threadpool.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-timeout-timer.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-tokenize.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-vfs.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-write.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-writeable.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ws-close.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ws-ext.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-ws-state.h
Examining data/libwebsockets-4.1.4/include/libwebsockets/lws-x509.h
Examining data/libwebsockets-4.1.4/lib/abstract/abstract.c
Examining data/libwebsockets-4.1.4/lib/abstract/private-lib-abstract.h
Examining data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/private-lib-abstract-protocols-smtp.h
Examining data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp-sequencer.c
Examining data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp.c
Examining data/libwebsockets-4.1.4/lib/abstract/test-sequencer.c
Examining data/libwebsockets-4.1.4/lib/abstract/transports/raw-skt.c
Examining data/libwebsockets-4.1.4/lib/abstract/transports/unit-test.c
Examining data/libwebsockets-4.1.4/lib/core-net/adopt.c
Examining data/libwebsockets-4.1.4/lib/core-net/client.c
Examining data/libwebsockets-4.1.4/lib/core-net/close.c
Examining data/libwebsockets-4.1.4/lib/core-net/connect.c
Examining data/libwebsockets-4.1.4/lib/core-net/detailed-latency.c
Examining data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c
Examining data/libwebsockets-4.1.4/lib/core-net/lws-dsh.c
Examining data/libwebsockets-4.1.4/lib/core-net/network.c
Examining data/libwebsockets-4.1.4/lib/core-net/output.c
Examining data/libwebsockets-4.1.4/lib/core-net/pollfd.c
Examining data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h
Examining data/libwebsockets-4.1.4/lib/core-net/sequencer.c
Examining data/libwebsockets-4.1.4/lib/core-net/server.c
Examining data/libwebsockets-4.1.4/lib/core-net/service.c
Examining data/libwebsockets-4.1.4/lib/core-net/socks5-client.c
Examining data/libwebsockets-4.1.4/lib/core-net/sorted-usec-list.c
Examining data/libwebsockets-4.1.4/lib/core-net/state.c
Examining data/libwebsockets-4.1.4/lib/core-net/stats.c
Examining data/libwebsockets-4.1.4/lib/core-net/vhost.c
Examining data/libwebsockets-4.1.4/lib/core-net/wsi-timeout.c
Examining data/libwebsockets-4.1.4/lib/core-net/wsi.c
Examining data/libwebsockets-4.1.4/lib/core/alloc.c
Examining data/libwebsockets-4.1.4/lib/core/buflist.c
Examining data/libwebsockets-4.1.4/lib/core/context.c
Examining data/libwebsockets-4.1.4/lib/core/libwebsockets.c
Examining data/libwebsockets-4.1.4/lib/core/logs.c
Examining data/libwebsockets-4.1.4/lib/core/lws_dll2.c
Examining data/libwebsockets-4.1.4/lib/core/private-lib-core.h
Examining data/libwebsockets-4.1.4/lib/core/vfs.c
Examining data/libwebsockets-4.1.4/lib/drivers/button/lws-button.c
Examining data/libwebsockets-4.1.4/lib/drivers/devices/display/ili9341.h
Examining data/libwebsockets-4.1.4/lib/drivers/devices/display/ssd1306.h
Examining data/libwebsockets-4.1.4/lib/drivers/display/ili9341-spi.c
Examining data/libwebsockets-4.1.4/lib/drivers/display/lws-display.c
Examining data/libwebsockets-4.1.4/lib/drivers/display/ssd1306-i2c.c
Examining data/libwebsockets-4.1.4/lib/drivers/i2c/bitbang/lws-bb-i2c.c
Examining data/libwebsockets-4.1.4/lib/drivers/i2c/lws-i2c.c
Examining data/libwebsockets-4.1.4/lib/drivers/led/led-gpio.c
Examining data/libwebsockets-4.1.4/lib/drivers/led/led-seq.c
Examining data/libwebsockets-4.1.4/lib/drivers/led/private-lib-drivers-led.h
Examining data/libwebsockets-4.1.4/lib/drivers/netdev/netdev.c
Examining data/libwebsockets-4.1.4/lib/drivers/netdev/wifi.c
Examining data/libwebsockets-4.1.4/lib/drivers/pwm/pwm.c
Examining data/libwebsockets-4.1.4/lib/drivers/settings/settings.c
Examining data/libwebsockets-4.1.4/lib/drivers/spi/bitbang/lws-bb-spi.c
Examining data/libwebsockets-4.1.4/lib/drivers/spi/lws-spi.c
Examining data/libwebsockets-4.1.4/lib/event-libs/glib/glib.c
Examining data/libwebsockets-4.1.4/lib/event-libs/glib/private-lib-event-libs-glib.h
Examining data/libwebsockets-4.1.4/lib/event-libs/libev/libev.c
Examining data/libwebsockets-4.1.4/lib/event-libs/libev/private-lib-event-libs-libev.h
Examining data/libwebsockets-4.1.4/lib/event-libs/libevent/libevent.c
Examining data/libwebsockets-4.1.4/lib/event-libs/libevent/private-lib-event-libs-libevent.h
Examining data/libwebsockets-4.1.4/lib/event-libs/libuv/libuv.c
Examining data/libwebsockets-4.1.4/lib/event-libs/libuv/private-lib-event-libs-libuv.h
Examining data/libwebsockets-4.1.4/lib/event-libs/poll/poll.c
Examining data/libwebsockets-4.1.4/lib/event-libs/poll/private-lib-event-libs-poll.h
Examining data/libwebsockets-4.1.4/lib/event-libs/private-lib-event-libs.h
Examining data/libwebsockets-4.1.4/lib/jose/jwe/enc/aescbc.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/enc/aesgcm.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/enc/aeskw.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/jwe-ecdh-es-aeskw.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/jwe-rsa-aescbc.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/jwe-rsa-aesgcm.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c
Examining data/libwebsockets-4.1.4/lib/jose/jwe/private-lib-jose-jwe.h
Examining data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c
Examining data/libwebsockets-4.1.4/lib/jose/jws/jose.c
Examining data/libwebsockets-4.1.4/lib/jose/jws/jws.c
Examining data/libwebsockets-4.1.4/lib/jose/jws/private-lib-jose-jws.h
Examining data/libwebsockets-4.1.4/lib/jose/private-lib-jose.h
Examining data/libwebsockets-4.1.4/lib/misc/base64-decode.c
Examining data/libwebsockets-4.1.4/lib/misc/daemonize.c
Examining data/libwebsockets-4.1.4/lib/misc/dir.c
Examining data/libwebsockets-4.1.4/lib/misc/diskcache.c
Examining data/libwebsockets-4.1.4/lib/misc/fsmount.c
Examining data/libwebsockets-4.1.4/lib/misc/fts/private-lib-misc-fts.h
Examining data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c
Examining data/libwebsockets-4.1.4/lib/misc/fts/trie.c
Examining data/libwebsockets-4.1.4/lib/misc/getifaddrs.c
Examining data/libwebsockets-4.1.4/lib/misc/getifaddrs.h
Examining data/libwebsockets-4.1.4/lib/misc/lejp.c
Examining data/libwebsockets-4.1.4/lib/misc/lws-ring.c
Examining data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c
Examining data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c
Examining data/libwebsockets-4.1.4/lib/misc/lwsac/cached-file.c
Examining data/libwebsockets-4.1.4/lib/misc/lwsac/lwsac.c
Examining data/libwebsockets-4.1.4/lib/misc/lwsac/private-lib-misc-lwsac.h
Examining data/libwebsockets-4.1.4/lib/misc/peer-limits.c
Examining data/libwebsockets-4.1.4/lib/misc/romfs.c
Examining data/libwebsockets-4.1.4/lib/misc/romfs.h
Examining data/libwebsockets-4.1.4/lib/misc/sha-1.c
Examining data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/gpio-esp32.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/lws-plat-gpio.h
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/pwm-esp32.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/settings-esp32.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/esp32/esp_attr.h
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-fds.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-file.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-init.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-misc.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-pipe.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-resolv.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-service.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/freertos-sockets.c
Examining data/libwebsockets-4.1.4/lib/plat/freertos/private-lib-plat-freertos.h
Examining data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c
Examining data/libwebsockets-4.1.4/lib/plat/optee/network.c
Examining data/libwebsockets-4.1.4/lib/plat/optee/private-lib-plat-optee.h
Examining data/libwebsockets-4.1.4/lib/plat/unix/android/android-resolv.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/private-lib-plat-unix.h
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-caps.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-fds.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-file.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-init.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-misc.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-pipe.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-plugins.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-service.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c
Examining data/libwebsockets-4.1.4/lib/plat/unix/unix-spawn.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/private-lib-plat-windows.h
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-fds.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-file.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-init.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-misc.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-pipe.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-plugins.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-resolv.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-service.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c
Examining data/libwebsockets-4.1.4/lib/plat/windows/windows-spawn.c
Examining data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c
Examining data/libwebsockets-4.1.4/lib/roles/cgi/ops-cgi.c
Examining data/libwebsockets-4.1.4/lib/roles/cgi/private-lib-roles-cgi.h
Examining data/libwebsockets-4.1.4/lib/roles/dbus/dbus.c
Examining data/libwebsockets-4.1.4/lib/roles/dbus/private-lib-roles-dbus.h
Examining data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c
Examining data/libwebsockets-4.1.4/lib/roles/h1/private-lib-roles-h1.h
Examining data/libwebsockets-4.1.4/lib/roles/h2/hpack.c
Examining data/libwebsockets-4.1.4/lib/roles/h2/http2.c
Examining data/libwebsockets-4.1.4/lib/roles/h2/huftable.h
Examining data/libwebsockets-4.1.4/lib/roles/h2/minihuf.c
Examining data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c
Examining data/libwebsockets-4.1.4/lib/roles/h2/private-lib-roles-h2.h
Examining data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c
Examining data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c
Examining data/libwebsockets-4.1.4/lib/roles/http/compression/brotli/brotli.c
Examining data/libwebsockets-4.1.4/lib/roles/http/compression/deflate/deflate.c
Examining data/libwebsockets-4.1.4/lib/roles/http/compression/private-lib-roles-http-compression.h
Examining data/libwebsockets-4.1.4/lib/roles/http/compression/stream.c
Examining data/libwebsockets-4.1.4/lib/roles/http/header.c
Examining data/libwebsockets-4.1.4/lib/roles/http/lextable-strings.h
Examining data/libwebsockets-4.1.4/lib/roles/http/lextable.h
Examining data/libwebsockets-4.1.4/lib/roles/http/minilex.c
Examining data/libwebsockets-4.1.4/lib/roles/http/parsers.c
Examining data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h
Examining data/libwebsockets-4.1.4/lib/roles/http/server/access-log.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/fops-zip.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/ranges.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/rewrite.c
Examining data/libwebsockets-4.1.4/lib/roles/http/server/server.c
Examining data/libwebsockets-4.1.4/lib/roles/listen/ops-listen.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/ops-mqtt.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/primitives.c
Examining data/libwebsockets-4.1.4/lib/roles/mqtt/private-lib-roles-mqtt.h
Examining data/libwebsockets-4.1.4/lib/roles/pipe/ops-pipe.c
Examining data/libwebsockets-4.1.4/lib/roles/private-lib-roles.h
Examining data/libwebsockets-4.1.4/lib/roles/raw-file/ops-raw-file.c
Examining data/libwebsockets-4.1.4/lib/roles/raw-proxy/ops-raw-proxy.c
Examining data/libwebsockets-4.1.4/lib/roles/raw-proxy/private-lib-roles-raw-proxy.h
Examining data/libwebsockets-4.1.4/lib/roles/raw-skt/ops-raw-skt.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/client-parser-ws.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/ext/extension-permessage-deflate.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/ext/extension-permessage-deflate.h
Examining data/libwebsockets-4.1.4/lib/roles/ws/ext/extension.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c
Examining data/libwebsockets-4.1.4/lib/roles/ws/private-lib-roles-ws.h
Examining data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/plugins/ssp-h1url/h1url.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/policy-common.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h
Examining data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-h1.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-h2.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-raw.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-ws.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-process.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-serialize.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/system/auth-api.amazon.com/auth.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/system/captive-portal-detect/captive-portal-detect.c
Examining data/libwebsockets-4.1.4/lib/secure-streams/system/fetch-policy/fetch-policy.c
Examining data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c
Examining data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c
Examining data/libwebsockets-4.1.4/lib/system/async-dns/private-lib-async-dns.h
Examining data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c
Examining data/libwebsockets-4.1.4/lib/system/dhcpclient/private-lib-system-dhcpclient.h
Examining data/libwebsockets-4.1.4/lib/system/ntpclient/ntpclient.c
Examining data/libwebsockets-4.1.4/lib/system/smd/private-lib-system-smd.h
Examining data/libwebsockets-4.1.4/lib/system/smd/smd.c
Examining data/libwebsockets-4.1.4/lib/system/system.c
Examining data/libwebsockets-4.1.4/lib/tls/lws-gencrypto-common.c
Examining data/libwebsockets-4.1.4/lib/tls/lws-genec-common.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-gencrypto.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genhash.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genrsa.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-client.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-ssl.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-tls.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-x509.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/private-lib-tls-mbedtls.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl3.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_cert.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_code.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_dbg.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_lib.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_methods.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_pkey.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_stack.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_types.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_x509.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/tls1.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/x509_vfy.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/openssl/ssl.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/platform/ssl_pm.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/platform/ssl_port.h
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_cert.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_methods.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_pkey.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_stack.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_x509.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/platform/ssl_pm.c
Examining data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/platform/ssl_port.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/lws-genaes.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/lws-gencrypto.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/lws-genec.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/lws-genhash.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/lws-genrsa.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/openssl-server.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/openssl-ssl.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/openssl-tls.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c
Examining data/libwebsockets-4.1.4/lib/tls/openssl/private-lib-tls-openssl.h
Examining data/libwebsockets-4.1.4/lib/tls/private-lib-tls.h
Examining data/libwebsockets-4.1.4/lib/tls/private-network.h
Examining data/libwebsockets-4.1.4/lib/tls/tls-client.c
Examining data/libwebsockets-4.1.4/lib/tls/tls-network.c
Examining data/libwebsockets-4.1.4/lib/tls/tls-server.c
Examining data/libwebsockets-4.1.4/lib/tls/tls.c
Examining data/libwebsockets-4.1.4/lwsws/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/abstract/protocols/smtp-client/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-async-dns/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-dhcpc/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/lws-genaes.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/lws-genec.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lejp/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_dsh/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_sequencer/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_smd/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/test2.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct_sqlite/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lwsac/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-secure-streams/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-smtp_client/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/client-server/minimal-ws-proxy/minimal-ws-proxy.c
Examining data/libwebsockets-4.1.4/minimal-examples/client-server/minimal-ws-proxy/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-client/minimal-dbus-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/minimal-dbus-ws-proxy-testclient.c
Examining data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-server/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/banded-img.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/main/devices.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/main/lws-minimal-esp32.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/main/policy.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/scan/pic.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/scan/scan.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-heltec-wb32/sdkconfig.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/main/cat-565.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/main/devices.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/main/lws-minimal-esp32.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/main/policy.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/main/static-policy.h
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/rgb565/rgb565.c
Examining data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/sdkconfig.h
Examining data/libwebsockets-4.1.4/minimal-examples/gtk/minimal-gtk/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-attach/minimal-http-client-attach.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-captive-portal/minimal-http-client-captive-portal.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-certinfo/minimal-http-client-certinfo.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-custom-headers/minimal-http-client-custom-headers.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-hugeurl/minimal-http-client-hugeurl.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-post/minimal-http-client-post.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-basicauth/minimal-http-server-basicauth.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-cgi/minimal-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-custom-headers/minimal-http-server-custom-headers.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-deaddrop/minimal-http-server-deaddrop.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-demos/minimal-http-server-eventlib-demos.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/glib.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/libev.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/libevent.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/libuv.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/minimal-http-server-eventlib-foreign.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/private.h
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-smp/minimal-http-server-eventlib-smp.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib/minimal-http-server-eventlib.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post-file/minimal-http-server-form-post-file.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post-lwsac/minimal-http-server-form-post.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-fulltext-search/minimal-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-h2-long-poll/minimal-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-mimetypes/minimal-http-server-mimetypes.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-multivhost/minimal-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-proxy/minimal-http-server-proxy.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-smp/minimal-http-server-smp.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse-ring/minimal-http-server-sse-ring.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse/minimal-http-server-sse.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-80/minimal-http-server-tls-80.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-mem/minimal-http-server-tls-mem.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls/minimal-http-server-tls.c
Examining data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server/minimal-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client-multi/minimal-mqtt-client-multi.c
Examining data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client/minimal-mqtt-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-adopt-tcp/minimal-raw-adopt-tcp.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-adopt-udp/minimal-raw-adopt-udp.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-audio/audio.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-fallback-http-server/minimal-raw-fallback-http-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-file/minimal-raw-file.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-netcat/minimal-raw-netcat.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy-fallback/minimal-raw-proxy-fallback.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy/minimal-raw-proxy.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-serial/minimal-raw-file.c
Examining data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-vhost/minimal-raw-vhost.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/alexa.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/audio.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/private.h
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/main-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-client-tx/minimal-secure-streams-client-tx.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-metadata/minimal-secure-streams.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-policy2c/minimal-secure-streams.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-proxy/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-seq/minimal-secure-streams.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server-raw/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server-raw/ss-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/ss-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/ss-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-smd/minimal-secure-streams-smd.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-staticpolicy/minimal-secure-streams.c
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-staticpolicy/static-policy.h
Examining data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams/minimal-secure-streams.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-binance/main.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/minimal-ws-client-echo.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/protocol_lws_minimal_client_echo.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-ping/minimal-ws-client-ping.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-pmd-bulk/minimal-ws-client-pmd-bulk.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-pmd-bulk/protocol_lws_minimal_pmd_bulk.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-rx/minimal-ws-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-spam/minimal-ws-client-spam.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-tx/minimal-ws-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client/minimal-ws-client.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-broker/minimal-ws-broker.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-broker/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-echo/minimal-ws-server-echo.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-echo/protocol_lws_minimal_server_echo.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/minimal-ws-server-pmd-bulk.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/protocol_lws_minimal_pmd_bulk.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/minimal-ws-server-pmd-corner.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd/minimal-ws-server-pmd.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-ring/minimal-ws-server-ring.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-ring/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/minimal-ws-server-threadpool.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/minimal-ws-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/minimal-ws-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads/minimal-ws-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-timer/minimal-ws-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server/minimal-ws-server.c
Examining data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server/protocol_lws_minimal.c
Examining data/libwebsockets-4.1.4/plugin-standalone/protocol_example_standalone.c
Examining data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c
Examining data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c
Examining data/libwebsockets-4.1.4/plugins/protocol_client_loopback_test.c
Examining data/libwebsockets-4.1.4/plugins/protocol_dumb_increment.c
Examining data/libwebsockets-4.1.4/plugins/protocol_fulltext_demo.c
Examining data/libwebsockets-4.1.4/plugins/protocol_lws_mirror.c
Examining data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c
Examining data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c
Examining data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c
Examining data/libwebsockets-4.1.4/plugins/protocol_lws_status.c
Examining data/libwebsockets-4.1.4/plugins/protocol_post_demo.c
Examining data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/chacha.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/poly1305.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/crypto/smult_curve25519_ref.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-plugin-ssh.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-plugin-sshd-static-build-includes.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h
Examining data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c
Examining data/libwebsockets-4.1.4/plugins/ssh-base/telnet.c
Examining data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp
Examining data/libwebsockets-4.1.4/test-apps/test-client.c
Examining data/libwebsockets-4.1.4/test-apps/test-lejp.c
Examining data/libwebsockets-4.1.4/test-apps/test-server.c
Examining data/libwebsockets-4.1.4/test-apps/test-sshd.c
Examining data/libwebsockets-4.1.4/win32port/dirent/dirent-win32.h
Examining data/libwebsockets-4.1.4/win32port/win32helpers/getopt.c
Examining data/libwebsockets-4.1.4/win32port/win32helpers/getopt.h
Examining data/libwebsockets-4.1.4/win32port/win32helpers/getopt_long.c
Examining data/libwebsockets-4.1.4/win32port/win32helpers/gettimeofday.c
Examining data/libwebsockets-4.1.4/win32port/win32helpers/gettimeofday.h
Examining data/libwebsockets-4.1.4/win32port/zlib/adler32.c
Examining data/libwebsockets-4.1.4/win32port/zlib/compress.c
Examining data/libwebsockets-4.1.4/win32port/zlib/crc32.c
Examining data/libwebsockets-4.1.4/win32port/zlib/crc32.h
Examining data/libwebsockets-4.1.4/win32port/zlib/deflate.c
Examining data/libwebsockets-4.1.4/win32port/zlib/deflate.h
Examining data/libwebsockets-4.1.4/win32port/zlib/gzguts.h
Examining data/libwebsockets-4.1.4/win32port/zlib/gzlib.c
Examining data/libwebsockets-4.1.4/win32port/zlib/gzread.c
Examining data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c
Examining data/libwebsockets-4.1.4/win32port/zlib/infback.c
Examining data/libwebsockets-4.1.4/win32port/zlib/inffast.c
Examining data/libwebsockets-4.1.4/win32port/zlib/inffast.h
Examining data/libwebsockets-4.1.4/win32port/zlib/inffixed.h
Examining data/libwebsockets-4.1.4/win32port/zlib/inflate.c
Examining data/libwebsockets-4.1.4/win32port/zlib/inflate.h
Examining data/libwebsockets-4.1.4/win32port/zlib/inftrees.c
Examining data/libwebsockets-4.1.4/win32port/zlib/inftrees.h
Examining data/libwebsockets-4.1.4/win32port/zlib/trees.c
Examining data/libwebsockets-4.1.4/win32port/zlib/trees.h
Examining data/libwebsockets-4.1.4/win32port/zlib/uncompr.c
Examining data/libwebsockets-4.1.4/win32port/zlib/zconf.h
Examining data/libwebsockets-4.1.4/win32port/zlib/zlib.h
Examining data/libwebsockets-4.1.4/win32port/zlib/zutil.c
Examining data/libwebsockets-4.1.4/win32port/zlib/zutil.h
Examining data/libwebsockets-4.1.4/debian/tests/data/version.c

FINAL RESULTS:

data/libwebsockets-4.1.4/lib/core-net/network.c:332:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(iface, uid, gid)) {
data/libwebsockets-4.1.4/lib/core-net/network.c:343:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod(iface, 0660)) {
data/libwebsockets-4.1.4/lib/core-net/vhost.c:806:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(info->log_filepath, context->uid,
data/libwebsockets-4.1.4/lib/misc/dir.c:262:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if (readlink(path, dummy, sizeof(dummy)) < 0)
data/libwebsockets-4.1.4/lib/misc/diskcache.c:127:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(cache_base_dir, uid, -1))
data/libwebsockets-4.1.4/lib/misc/diskcache.c:134:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(dir, uid, -1))
data/libwebsockets-4.1.4/lib/misc/diskcache.c:141:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(dir, uid, -1))
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:523:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(sqlite3_path, uid, gid))
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:525:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(sqlite3_path, 0600);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:595:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			len = readlink(path, sym, sizeof(sym) - 1);
data/libwebsockets-4.1.4/include/libwebsockets.h:165:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define LWS_FORMAT(string_index) __attribute__ ((format(printf, string_index, string_index+1)))
data/libwebsockets-4.1.4/lib/core-net/network.c:229:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(serv_unix.sun_path, iface);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:364:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(d, s);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:728:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(str, size, format, ap);
data/libwebsockets-4.1.4/lib/core/logs.c:176:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(buf, sizeof(buf) - 1, format, vl);
data/libwebsockets-4.1.4/lib/drivers/settings/settings.c:57:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(NULL, 0, format, ap);
data/libwebsockets-4.1.4/lib/drivers/settings/settings.c:62:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf((char *)p, n + 2, format, ap);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1077:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(NULL, 0, format, ap);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1087:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(q, n + 2, format, ap);
data/libwebsockets-4.1.4/lib/misc/daemonize.c:145:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(lock_path, _lock_path);
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:701:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(tp->name, sizeof(tp->name) - 1, format, ap);
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:1008:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(task->name, sizeof(task->name) - 1, format, ap);
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:35:1:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
strcpy(char *dest, const char *src)
data/libwebsockets-4.1.4/lib/plat/unix/unix-spawn.c:537:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(i->exec_array[0], (char * const *)&i->exec_array[0]);
data/libwebsockets-4.1.4/lib/plat/windows/private-lib-plat-windows.h:93:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  #define vsnprintf _vsnprintf
data/libwebsockets-4.1.4/lib/roles/http/header.c:475:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(wsi->h2.pending_status_body + LWS_PRE, body);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:659:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					cclen = sprintf(cache_control,
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:665:49:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                        cclen = sprintf(cache_control,
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2735:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			cclen = sprintf(cache_control, "%s, max-age=%u",
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2740:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			cclen = sprintf(cache_control,
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:168:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	p += sprintf(p, "Upgrade: websocket\x0d\x0a"
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:171:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(p, key_b64);
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:175:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "Sec-WebSocket-Protocol: %s\x0d\x0a",
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:206:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "%s", ext->client_offer);
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:222:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	n = sprintf(buf, "%s258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:27:32:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:27:32:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:664:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	n = sprintf((char *)pt->serv_buf,
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:692:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(p, (char *)pt->serv_buf);
data/libwebsockets-4.1.4/lib/system/smd/smd.c:186:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(NULL, 0, format, ap);
data/libwebsockets-4.1.4/lib/system/smd/smd.c:199:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf((char*)p, n + 2, format, ap);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:277:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:351:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genec.c:377:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:970:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->urls[JAD_NEW_ACCOUNT_URL]);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1055:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->urls[JAD_NEW_ACCOUNT_URL]);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1116:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->urls[JAD_NEW_ORDER_URL]);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1121:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->authz_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1130:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->challenge_uri);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1134:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->order_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1154:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->finalize_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1158:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ac->active_url, ac->cert_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1261:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->urls[JAD_NEW_NONCE_URL]);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1281:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(buf, ac->urls[JAD_NEW_ORDER_URL]);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1312:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->authz_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1421:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->order_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1475:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->finalize_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1501:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(buf, ac->finalize_url);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1519:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, ac->cert_url);
data/libwebsockets-4.1.4/plugins/protocol_client_loopback_test.c:106:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "Arg %s is not in format ws://xxx or wss://xxx\n", p);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:75:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)(*p), s);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1527:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(pss->args.aux, pss->name);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2184:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy((char *)pp, pss->name);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2207:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy((char *)pp, (char *)&buf[650]);
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:25:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf(...) __android_log_print(ANDROID_LOG_VERBOSE, "LwsService", ##__VA_ARGS__)
data/libwebsockets-4.1.4/test-apps/test-server.c:559:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(cert_path, "%s/libwebsockets-test-server.pem",
data/libwebsockets-4.1.4/test-apps/test-server.c:566:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key_path, "%s/libwebsockets-test-server.key.pem",
data/libwebsockets-4.1.4/test-apps/test-sshd.c:389:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)pvo->name, name);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:390:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy((char *)pvo->value, value);
data/libwebsockets-4.1.4/win32port/zlib/gzguts.h:36:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define vsnprintf _vsnprintf
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:156:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(state->path, path);
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:514:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(state->msg, state->path);
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:516:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(state->msg, msg);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:319:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)vsprintf(state->in, format, va);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:324:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = vsprintf(state->in, format, va);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:329:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    (void)vsnprintf(state->in, size, format, va);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:333:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf((char *)(state->in), size, format, va);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:393:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(state->in, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:398:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = sprintf(state->in, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:403:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(state->in, size, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:407:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = snprintf(state->in, size, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:201:18:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#    if !defined(vsnprintf) && !defined(NO_vsnprintf)
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:203:18:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#         define vsnprintf _vsnprintf
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:250:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Trace(x) {if (z_verbose>=0) fprintf x ;}
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:251:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracev(x) {if (z_verbose>0) fprintf x ;}
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:252:40:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracevv(x) {if (z_verbose>1) fprintf x ;}
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:253:48:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:254:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
data/libwebsockets-4.1.4/include/libwebsockets.h:185:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random rand
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:205:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *p = getenv("socks_proxy");
data/libwebsockets-4.1.4/lib/core-net/vhost.c:775:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		p = getenv("http_proxy"); /* coverity[tainted_scalar] */
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:243:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *ntpsrv = getenv("LWS_NTP_SERVER");
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:100:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *ntpsrv = getenv("LWS_NTP_SERVER");
data/libwebsockets-4.1.4/lib/plat/unix/unix-spawn.c:492:24:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (i->chroot_path && chroot(i->chroot_path)) {
data/libwebsockets-4.1.4/lib/plat/windows/windows-init.c:94:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection(&pt->interrupt_lock);
data/libwebsockets-4.1.4/lib/plat/windows/windows-pipe.c:47:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pt->interrupt_lock);
data/libwebsockets-4.1.4/lib/plat/windows/windows-resolv.c:55:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *ntpsrv = getenv("LWS_NTP_SERVER");
data/libwebsockets-4.1.4/lib/plat/windows/windows-service.c:193:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pt->interrupt_lock);
data/libwebsockets-4.1.4/lib/plat/windows/windows-spawn.c:503:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL, cli, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) {
data/libwebsockets-4.1.4/lib/plat/windows/windows-spawn.c:503:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL, cli, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) {
data/libwebsockets-4.1.4/lwsws/main.c:247:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		n = getopt_long(argc, argv, "hd:c:", options, NULL);
data/libwebsockets-4.1.4/lwsws/main.c:249:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		n = getopt(argc, argv, "hd:c:");
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:43:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		n = getopt_long(argc, argv, "hd:i:cfl", options, NULL);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:45:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
       n = getopt(argc, argv, "hd:i:cfl");
data/libwebsockets-4.1.4/test-apps/test-client.c:32:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random rand
data/libwebsockets-4.1.4/test-apps/test-client.c:599:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
       n = getopt_long(argc, argv, "Sjnuv:hsp:d:lC:K:A:moeO", options, NULL);
data/libwebsockets-4.1.4/test-apps/test-client.c:601:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
       n = getopt(argc, argv, "Sjnuv:hsp:d:lC:K:A:moeO");
data/libwebsockets-4.1.4/test-apps/test-server.c:408:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		n = getopt_long(argc, argv, "eci:hsap:d:DC:K:A:R:vu:g:kU:niIr:", options, NULL);
data/libwebsockets-4.1.4/test-apps/test-server.c:410:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		n = getopt(argc, argv, "eci:hsap:d:DC:K:A:R:vu:g:kU:nIr:");
data/libwebsockets-4.1.4/win32port/win32helpers/getopt.c:49:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
__weak_alias(getopt,_getopt);
data/libwebsockets-4.1.4/win32port/win32helpers/getopt.c:87:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(nargc, nargv, ostr)
data/libwebsockets-4.1.4/win32port/win32helpers/getopt.h:26:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int, char**, char*);
data/libwebsockets-4.1.4/win32port/win32helpers/getopt.h:27:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int, char**, char*, struct option*, int*);
data/libwebsockets-4.1.4/win32port/win32helpers/getopt_long.c:167:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(nargc, nargv, options, long_options, index)
data/libwebsockets-4.1.4/include/libwebsockets.h:442:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
int atoi(const char *nptr);
data/libwebsockets-4.1.4/include/libwebsockets/abstract/protocols/smtp.h:57:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char		helo[32];
data/libwebsockets-4.1.4/include/libwebsockets/lws-callbacks.h:80:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *element_overrides[LWS_TLS_TOTAL_COUNT]; /* NULL = use pvo */
data/libwebsockets-4.1.4/include/libwebsockets/lws-genaes.h:83:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char tag[16];
data/libwebsockets-4.1.4/include/libwebsockets/lws-http.h:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char swallow[16]; /**< matched character buffer */
data/libwebsockets-4.1.4/include/libwebsockets/lws-jose.h:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char typ[32];
data/libwebsockets-4.1.4/include/libwebsockets/lws-jwk.h:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b64[(((8192 / 8) * 4) / 3) + 1]; /* enough for 8Kb key */
data/libwebsockets-4.1.4/include/libwebsockets/lws-jws.h:62:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *buf[LWS_JWS_MAX_COMPACT_BLOCKS];
data/libwebsockets-4.1.4/include/libwebsockets/lws-jws.h:502:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				sub[33];
data/libwebsockets-4.1.4/include/libwebsockets/lws-lejp.h:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[LEJP_MAX_PATH];
data/libwebsockets-4.1.4/include/libwebsockets/lws-lejp.h:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LEJP_STRING_CHUNK + 1];
data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h:777:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ssid[32];
data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h:987:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		mp[256];	/* mountpoint path */
data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h:988:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		ovname[64];	/* unique name for mount instance */
data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h:989:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		distro[64];	/* unique name for layer source */
data/libwebsockets-4.1.4/include/libwebsockets/lws-misc.h:992:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char	*layers[4];	/* distro layers, like "base", "env" */
data/libwebsockets-4.1.4/include/libwebsockets/lws-netdev.h:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				passphrase[64];
data/libwebsockets-4.1.4/include/libwebsockets/lws-netdev.h:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				ssid[33];
data/libwebsockets-4.1.4/include/libwebsockets/lws-netdev.h:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				current_attempt_ssid[33];
data/libwebsockets-4.1.4/include/libwebsockets/lws-optee.h:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		__ss_pad1[_SS_PAD1SIZE];
data/libwebsockets-4.1.4/include/libwebsockets/lws-optee.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		__ss_pad2[_SS_PAD2SIZE];
data/libwebsockets-4.1.4/include/libwebsockets/lws-secure-streams-policy.h:211:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			const char	*blob_header[_LWSSS_HBI_COUNT];
data/libwebsockets-4.1.4/include/libwebsockets/lws-sha1-base64.h:95:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char quad[4];
data/libwebsockets-4.1.4/include/libwebsockets/lws-struct.h:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LEJP_STRING_CHUNK + 1];
data/libwebsockets-4.1.4/include/libwebsockets/lws-tokenize.h:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			name[32];
data/libwebsockets-4.1.4/include/libwebsockets/lws-vfs.h:56:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define LWS_FOP_OPEN		open
data/libwebsockets-4.1.4/include/libwebsockets/lws-x509.h:65:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[64];
data/libwebsockets-4.1.4/lib/abstract/abstract.c:300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[30];
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/private-lib-abstract-protocols-smtp.h:13:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		from[LWS_SMTP_MAX_EMAIL_LEN];
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/private-lib-abstract-protocols-smtp.h:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		to[LWS_SMTP_MAX_EMAIL_LEN];
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp-sequencer.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp-sequencer.c:261:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s->args.helo, "default-helo");
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp-sequencer.c:308:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)&e[1], payload, payload_len + 1);
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dotstar[96], at[5];
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp.c:179:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	n = atoi(at);
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp.c:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b[256 + LWS_PRE], *p = b + LWS_PRE;
data/libwebsockets-4.1.4/lib/abstract/transports/unit-test.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char					note[128];
data/libwebsockets-4.1.4/lib/core-net/adopt.c:703:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&wsi->udp->sa, wsi->dns_results_next->ai_addr,
data/libwebsockets-4.1.4/lib/core-net/adopt.c:759:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[16];
data/libwebsockets-4.1.4/lib/core-net/client.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char authstring[96];
data/libwebsockets-4.1.4/lib/core-net/client.c:107:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		vhost->http.http_proxy_port = atoi(p + 1);
data/libwebsockets-4.1.4/lib/core-net/connect.c:35:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *cisin[CIS_COUNT];
data/libwebsockets-4.1.4/lib/core-net/connect.c:274:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pc, cisin[n], m);
data/libwebsockets-4.1.4/lib/core-net/detailed-latency.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[80], *p = buf, *end = &p[sizeof(buf) - 1];
data/libwebsockets-4.1.4/lib/core-net/detailed-latency.c:58:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		context->latencies_fd = open(context->detailed_latency_filepath,
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 6], *out = buf + LWS_PRE;
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:176:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(((uint8_t *)&pkt[1]) + LWS_PRE, in, len);
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:220:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(((uint8_t *)&pkt[1]) + LWS_PRE, in, len);
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 32 + 8192];
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:351:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf + LWS_PRE, "0\x0d\x0a\x0d\x0a", 5);
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:464:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(out, in, len);
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:569:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(parent->http.pending_return_headers + LWS_PRE, start,
data/libwebsockets-4.1.4/lib/core-net/lws-dsh.c:299:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&s.best[1], src1, size1);
data/libwebsockets-4.1.4/lib/core-net/lws-dsh.c:301:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((uint8_t *)&s.best[1] + size1, src2, size2);
data/libwebsockets-4.1.4/lib/core-net/lws-dsh.c:343:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&obj[1], src1, size1);
data/libwebsockets-4.1.4/lib/core-net/lws-dsh.c:345:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((uint8_t *)&obj[1] + size1, src2, size2);
data/libwebsockets-4.1.4/lib/core-net/network.c:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[NI_MAXHOST];
data/libwebsockets-4.1.4/lib/core-net/network.c:603:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[5];
data/libwebsockets-4.1.4/lib/core-net/network.c:633:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(t, ts.token, ts.token_len);
data/libwebsockets-4.1.4/lib/core-net/network.c:647:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(t, ts.token, ts.token_len);
data/libwebsockets-4.1.4/lib/core-net/network.c:704:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(temp, &orig[skip_point], ow - skip_point);
data/libwebsockets-4.1.4/lib/core-net/network.c:706:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&orig[16 - (ow - skip_point)], temp,
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cis[CIS_COUNT];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:495:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char proxy_basic_auth_token[128];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:499:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char close_flow_vs_tsi[LWS_MAX_SMP];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char socks_proxy_address[128];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:514:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char socks_user[96];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:515:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char socks_password[96];
data/libwebsockets-4.1.4/lib/core-net/private-lib-core-net.h:733:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char simple_ip[(8 * 5)];
data/libwebsockets-4.1.4/lib/core-net/server.c:207:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char contents[96], pure[96];
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user[96];
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char password[96];
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:85:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vhost->socks_proxy_port = atoi(p_colon + 1);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:139:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, wsi->a.vhost->socks_user, n);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:146:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, wsi->a.vhost->socks_password, passwd_len);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:170:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, wsi->stash->cis[CIS_ADDRESS], n);
data/libwebsockets-4.1.4/lib/core-net/state.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp8[8];
data/libwebsockets-4.1.4/lib/core-net/state.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp8[8];
data/libwebsockets-4.1.4/lib/core-net/state.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp8[8];
data/libwebsockets-4.1.4/lib/core-net/stats.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bufline[128], *p, *end = bufline + sizeof(bufline) - 1;
data/libwebsockets-4.1.4/lib/core-net/stats.c:222:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[72];
data/libwebsockets-4.1.4/lib/core-net/stats.c:230:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(buf, "unknown");
data/libwebsockets-4.1.4/lib/core-net/vhost.c:466:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[96];
data/libwebsockets-4.1.4/lib/core-net/vhost.c:590:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vh->tls.alloc_cert_path,
data/libwebsockets-4.1.4/lib/core-net/vhost.c:595:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vh->tls.key_path, info->ssl_private_key_filepath,
data/libwebsockets-4.1.4/lib/core-net/vhost.c:636:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&lwsp[n], info->pprotocols[n], sizeof(lwsp[0]));
data/libwebsockets-4.1.4/lib/core-net/vhost.c:638:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(lwsp, pcols, sizeof(struct lws_protocols) * m);
data/libwebsockets-4.1.4/lib/core-net/vhost.c:645:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&lwsp[m++], available_abstract_protocols[n],
data/libwebsockets-4.1.4/lib/core-net/vhost.c:655:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&lwsp[m++], &lws_async_dns_protocol,
data/libwebsockets-4.1.4/lib/core-net/vhost.c:663:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&lwsp[m++], available_secstream_protocols[n],
data/libwebsockets-4.1.4/lib/core-net/vhost.c:691:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&lwsp[m],
data/libwebsockets-4.1.4/lib/core-net/vhost.c:704:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&lwsp[m++], &lws_ws_proxy, sizeof(*lwsp));
data/libwebsockets-4.1.4/lib/core-net/vhost.c:727:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "(serving disabled)");
data/libwebsockets-4.1.4/lib/core-net/vhost.c:730:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "(no listener)");
data/libwebsockets-4.1.4/lib/core-net/wsi.c:502:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*port = atoi(p);
data/libwebsockets-4.1.4/lib/core/buflist.c:75:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, buf, len);
data/libwebsockets-4.1.4/lib/core/buflist.c:188:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, ((uint8_t *)&p[1]) + LWS_PRE + ofs, s);
data/libwebsockets-4.1.4/lib/core/context.c:980:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(context->canonical_hostname, "unknown");
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:193:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		n = open(__file, __oflag, va_arg(ap, uint32_t));
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:195:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		n = open(__file, __oflag);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:1011:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(str, ts->token, ts->token_len);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:1258:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m = atoi(p);
data/libwebsockets-4.1.4/lib/core/logs.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/libwebsockets-4.1.4/lib/core/logs.c:167:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/libwebsockets-4.1.4/lib/core/logs.c:169:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libwebsockets-4.1.4/lib/core/logs.c:236:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char line[80], *p = line;
data/libwebsockets-4.1.4/lib/core/private-lib-core.h:273:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char canonical_hostname[96];
data/libwebsockets-4.1.4/lib/drivers/netdev/netdev.c:180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char setname[16];
data/libwebsockets-4.1.4/lib/drivers/netdev/wifi.c:159:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wnd->current_attempt_bssid, pw->bssid, LWS_ETH_ALEN);
data/libwebsockets-4.1.4/lib/drivers/netdev/wifi.c:192:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char setname[16], ssid_copy[33];
data/libwebsockets-4.1.4/lib/drivers/netdev/wifi.c:211:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ssid_copy, ssid, al);
data/libwebsockets-4.1.4/lib/drivers/netdev/wifi.c:234:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wnd->current_attempt_bssid, bssid, LWS_ETH_ALEN);
data/libwebsockets-4.1.4/lib/jose/jwe/enc/aescbc.c:156:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *)jwe->jws.map.buf[LJWE_ATAG], digest, hlen / 2);
data/libwebsockets-4.1.4/lib/jose/jwe/enc/aeskw.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((uint8_t *)jwe->jws.map.buf[LJWE_EKEY], enc_cek,
data/libwebsockets-4.1.4/lib/jose/jwe/jwe-ecdh-es-aeskw.c:334:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(cek, derived, enc_hlen);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe-ecdh-es-aeskw.c:580:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(shared_secret, derived, enc_hlen);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe-rsa-aescbc.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ekey[LWS_GENHASH_LARGEST];
data/libwebsockets-4.1.4/lib/jose/jwe/jwe-rsa-aescbc.c:112:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ekey, jwe->jws.map.buf[LJWE_EKEY], hlen);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:111:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(args->temp, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dotstar[96];
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:724:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[3072], *p1, *end1, protected[128];
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:231:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->buf, in, len);
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:303:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dotstar[64];
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:473:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(jps->b64 + jps->pos, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:563:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(jwk->e[LWS_GENCRYPTO_KTY_OCT].buf, key, len);
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:708:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tok[12];
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:858:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(jwk->meta[idx].buf, in, len);
data/libwebsockets-4.1.4/lib/jose/jws/jose.c:172:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(args->jwk_jctx.path, ctx->path + 4,
data/libwebsockets-4.1.4/lib/jose/jws/jose.c:174:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(args->jwk_jctx.buf, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/jose/jws/jose.c:359:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(args->temp, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:113:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(args->temp, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:201:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(temp, in, in_len);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[256];
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1029:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, jws.map.buf[LJWS_PYLD], jws.map.len[LJWS_PYLD]);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1183:28:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (!cp || (unsigned long)atol(cp) > now) {
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1192:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	exp = (unsigned long)atol(cp);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1193:28:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (!cp || (unsigned long)atol(cp) < now) {
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1195:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				cp ? (unsigned long)atol(cp) : 0, now);
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:56:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char triple[3];
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/libwebsockets-4.1.4/lib/misc/daemonize.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sz[20];
data/libwebsockets-4.1.4/lib/misc/daemonize.c:66:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		len = sprintf(sz, "%u", (unsigned int)pid_daemon);
data/libwebsockets-4.1.4/lib/misc/daemonize.c:118:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[10];
data/libwebsockets-4.1.4/lib/misc/daemonize.c:124:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				n = atoi(buf);
data/libwebsockets-4.1.4/lib/misc/dir.c:41:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open _open
data/libwebsockets-4.1.4/lib/misc/dir.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combo[COMBO_SIZEOF];
data/libwebsockets-4.1.4/lib/misc/dir.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[384];
data/libwebsockets-4.1.4/lib/misc/dir.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[384];
data/libwebsockets-4.1.4/lib/misc/dir.c:249:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dummy[8];
data/libwebsockets-4.1.4/lib/misc/dir.c:301:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256], base[64], *q = base;
data/libwebsockets-4.1.4/lib/misc/diskcache.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[64];
data/libwebsockets-4.1.4/lib/misc/diskcache.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dir[256];
data/libwebsockets-4.1.4/lib/misc/diskcache.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ren[256], *p;
data/libwebsockets-4.1.4/lib/misc/diskcache.c:195:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*_fd = open(cache, O_RDONLY);
data/libwebsockets-4.1.4/lib/misc/diskcache.c:211:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(cache, O_RDWR);
data/libwebsockets-4.1.4/lib/misc/diskcache.c:227:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*_fd = open(cache, O_RDWR | O_CREAT | O_TRUNC, 0600);
data/libwebsockets-4.1.4/lib/misc/diskcache.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dirpath[132], filepath[132 + 32];
data/libwebsockets-4.1.4/lib/misc/diskcache.c:327:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(filepath, O_RDONLY);
data/libwebsockets-4.1.4/lib/misc/fsmount.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[384];
data/libwebsockets-4.1.4/lib/misc/fsmount.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char opts[512], c;
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[64];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:88:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[256 + 15];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:150:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[256];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:199:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	jtf->fd = open(filepath, O_RDONLY);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:243:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[8];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:288:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LWS_FTS_LINES_PER_CHUNK * 5];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:365:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, needle, pos);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:371:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, s[n].ch[w].name, s[n].ch[w].name_length);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:401:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4096];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:622:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[256], *pp;
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:652:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			ofd = open(path, O_RDONLY);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:693:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				unsigned char lbuf[256], *p;
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:694:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char ebuf[384];
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:741:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, ebuf, m);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:750:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pp, path, fplen);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filepath[256];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:163:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char agg[128];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:257:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[TRIE_FILE_HDR_SIZE];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:398:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[8192];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:447:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf[bp], &tif->vli, tif->count);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:453:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&buf[bp], &i->vli, i->count);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:523:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&s[n], e2->suffix, e2->suffix_len);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:547:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char c, linetable[256], vlibuf[8];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:947:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(t->parser->suffix + 1, t->agg, t->agg_pos);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:1036:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char s[128];
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:1102:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[8192], stasis;
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:1173:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf[bp], fp->filepath, n);
data/libwebsockets-4.1.4/lib/misc/getifaddrs.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifr->ifr_name));
data/libwebsockets-4.1.4/lib/misc/getifaddrs.c:146:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((*end)->ifa_addr, sa, salen);
data/libwebsockets-4.1.4/lib/misc/getifaddrs.c:154:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((*end)->ifa_broadaddr, &ifr->ifr_broadaddr,
data/libwebsockets-4.1.4/lib/misc/getifaddrs.c:159:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((*end)->ifa_dstaddr, &ifr->ifr_dstaddr,
data/libwebsockets-4.1.4/lib/misc/lws-ring.c:182:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(((uint8_t *)ring->buf) + ring->head, src, m);
data/libwebsockets-4.1.4/lib/misc/lws-ring.c:192:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *)ring->buf) + ring->head, src, n);
data/libwebsockets-4.1.4/lib/misc/lws-ring.c:235:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, ((uint8_t *)ring->buf) + *tail, m);
data/libwebsockets-4.1.4/lib/misc/lws-ring.c:245:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, ((uint8_t *)ring->buf) + *tail, n);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:308:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(coll->buf, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:342:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pc = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:348:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pi = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:354:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pl = atol(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:366:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pc = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:372:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pi = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:378:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				*pl = atol(ctx->buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:429:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(s, coll->buf, b);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:444:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s, ctx->buf, b);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:545:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dbuf[72];
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:788:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, q, budget);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:65:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pc = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:71:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*ps = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:77:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pi = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:83:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pl = atol(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:97:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pc = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:103:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*ps = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:109:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pi = atoi(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:115:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					*pl = atol(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:160:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s, cv[n], lim);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[768], results[512], where[250];
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:453:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[2048], *p = s, *end = &s[sizeof(s) - 1],
data/libwebsockets-4.1.4/lib/misc/lwsac/cached-file.c:153:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filepath, O_RDONLY);
data/libwebsockets-4.1.4/lib/misc/sha-1.c:44:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char		b8[20];
data/libwebsockets-4.1.4/lib/misc/sha-1.c:48:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char		b8[8];
data/libwebsockets-4.1.4/lib/misc/sha-1.c:52:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char		b8[64];
data/libwebsockets-4.1.4/lib/misc/sha-1.c:113:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&tctxt.m.b8[0], &ctxt->m.b8[0], 64);
data/libwebsockets-4.1.4/lib/misc/sha-1.c:248:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ctxt->m.b8[gapstart], &input[off], copysiz);
data/libwebsockets-4.1.4/lib/misc/sha-1.c:266:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(digest, &ctxt->h.b8[0], 20);
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				name[32];
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				name[32];
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[160];
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:495:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[160];
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:717:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[16];
data/libwebsockets-4.1.4/lib/misc/threadpool/threadpool.c:1063:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[160];
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:158:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(w->ssid, ar->ssid, m + 1);
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:161:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(w->bssid, ar->bssid, 6);
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:234:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		switch (atoi(ev)) {
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:328:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sa46->sa4.sin_addr, &eip->u_addr.ip4.addr, );
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:349:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ip[16];
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-file.c:39:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int ret = open(filename, *flags, 0664);
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-file.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64], result[64];
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-sockets.c:176:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&addr6->sin6_addr.s6_addr[12],
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-sockets.c:181:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr,
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-sockets.c:187:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&addr6->sin6_addr,
data/libwebsockets-4.1.4/lib/plat/freertos/private-lib-plat-freertos.h:33:2:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 open(const char *path, int oflag, ...);
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:105:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[50], linecp[512];
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:121:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(linecp, line, n - 1);
data/libwebsockets-4.1.4/lib/plat/unix/android/android-resolv.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char d[PROP_VALUE_MAX], *p;
data/libwebsockets-4.1.4/lib/plat/unix/android/android-resolv.c:41:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i[n] = atoi(d);
data/libwebsockets-4.1.4/lib/plat/unix/unix-caps.c:66:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(u, u_colon_g, ulen);
data/libwebsockets-4.1.4/lib/plat/unix/unix-init.c:141:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(SYSTEM_RANDOM_FILEPATH, O_RDONLY);
data/libwebsockets-4.1.4/lib/plat/unix/unix-plugins.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sym[96];
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ads[48], *r;
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:40:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/etc/resolv.conf", LWS_O_RDONLY);
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:75:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ads, ts.token, ts.token_len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:238:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&addr6->sin6_addr.s6_addr[12],
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:244:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr,
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:250:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&addr6->sin6_addr,
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:302:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hwaddr, &i.ifr_hwaddr.sa_data, 6);
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:321:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, canned, canned_len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:427:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr));
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:434:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr));
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:443:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&route.rt_gateway, &sin, sizeof(struct sockaddr));
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:446:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&route.rt_dst, &sin, sizeof(struct sockaddr));
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:447:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&route.rt_genmask, &sin, sizeof(struct sockaddr));
data/libwebsockets-4.1.4/lib/plat/unix/unix-spawn.c:432:19:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	lsp->child_pid = vfork();
data/libwebsockets-4.1.4/lib/plat/windows/private-lib-plat-windows.h:83:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   #warning No atoll or _atoi64 available, using atoi
data/libwebsockets-4.1.4/lib/plat/windows/private-lib-plat-windows.h:84:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   #define atoll atoi
data/libwebsockets-4.1.4/lib/plat/windows/windows-file.c:44:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, filename, -1, buf, LWS_ARRAY_SIZE(buf));
data/libwebsockets-4.1.4/lib/plat/windows/windows-plugins.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sym[96], *dot;
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:261:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&(srcaddr.sin_addr), src, sizeof(srcaddr.sin_addr));
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:272:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&(srcaddr.sin6_addr), src, sizeof(srcaddr.sin6_addr));
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:308:6:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	if (MultiByteToWideChar(CP_ACP, 0, src, (int)bufferlen, buffer,
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:324:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, &dstaddr.sin_addr, sizeof(dstaddr.sin_addr));
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:336:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, &dstaddr.sin6_addr, sizeof(dstaddr.sin6_addr));
data/libwebsockets-4.1.4/lib/plat/windows/windows-spawn.c:357:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cli[300], *p;
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:115:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *env_array[30], cgi_path[500], e[1024], *p = e,
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:256:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(cgi_path, "REQUEST_URI=");
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:438:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const significant_hdr[SIGNIFICANT_HDR_COUNT] = {
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:457:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LWS_PRE + 4096], *start = &buf[LWS_PRE], *p = start,
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:713:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
							atol(wsi->http.cgi->l);
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:831:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char chdr[LWS_HTTP_CHUNK_HDR_SIZE];
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:835:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(start, chdr, m);
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:836:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(start + m + n, "\x0d\x0a", 2);
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:872:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(term + LWS_PRE, (uint8_t *)"0\x0d\x0a\x0d\x0a", 5);
data/libwebsockets-4.1.4/lib/roles/cgi/private-lib-roles-cgi.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char summary[128];
data/libwebsockets-4.1.4/lib/roles/cgi/private-lib-roles-cgi.h:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char l[12];
data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c:713:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char *buf, prebuf[LWS_PRE + 1024];
data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c:723:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(prebuf + LWS_PRE, buf, len);
data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c:779:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char mtubuf[1500 + LWS_PRE +
data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c:800:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char c[LWS_HTTP_CHUNK_HDR_MAX_SIZE + 2];
data/libwebsockets-4.1.4/lib/roles/h1/ops-h1.c:809:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(out, c, n);
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[200];
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:333:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "(too big to show)");
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:549:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dyn->entries[new_index].value, arg, len);
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:1444:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*p, value, length);
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:1466:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char status[10];
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:1471:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf((char *)status, "%u", code);
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:825:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&set[LWS_PRE], pps->u.ping.ping_payload, 8);
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:1559:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[256];
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:1739:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pps->u.ping.ping_payload, h2n->ping_payload, 8);
data/libwebsockets-4.1.4/lib/roles/h2/minihuf.c:314:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char terms[2000];
data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c:386:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char mtubuf[4096 + LWS_PRE];
data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c:1231:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pps->u.ping.ping_payload, &us, 8);
data/libwebsockets-4.1.4/lib/roles/h2/private-lib-roles-h2.h:215:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char		str[32];
data/libwebsockets-4.1.4/lib/roles/h2/private-lib-roles-h2.h:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char goaway_str[32]; /* for rx */
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:384:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ni[48];
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:566:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&sa46.sa6.sin6_addr.s6_addr[12],
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:595:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa46.sa6.sin6_addr,
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:734:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char nads[48];
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1211:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, lws_hdr_simple_ptr(wsi, hnames2[n]), (size_t)(
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, address, strlen(address) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1220:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, host, strlen(host) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1223:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, path, strlen(path) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1353:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024], *start = buf + LWS_PRE, *p = start,
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ebuf[128];
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:602:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_path[300];
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:684:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	n = atoi(p);
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:720:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(mp, "GET", 4);
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1030:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[10], arg[48];
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1184:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(lws_hdr_simple_ptr(wsi->parent, WSI_TOKEN_HTTP_CONTENT_LENGTH)))
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b[128];
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1248:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, "Basic ", 6);
data/libwebsockets-4.1.4/lib/roles/http/compression/stream.c:97:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			(unsigned char *)lcs_available[n]->encoding_name,
data/libwebsockets-4.1.4/lib/roles/http/header.c:35:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	return (unsigned char *)set[token];
data/libwebsockets-4.1.4/lib/roles/http/header.c:60:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*p, value, length);
data/libwebsockets-4.1.4/lib/roles/http/header.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b[24];
data/libwebsockets-4.1.4/lib/roles/http/header.c:215:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						 (unsigned char *)ka[t],
data/libwebsockets-4.1.4/lib/roles/http/header.c:286:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char code_and_desc[60];
data/libwebsockets-4.1.4/lib/roles/http/header.c:391:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char slen[20];
data/libwebsockets-4.1.4/lib/roles/http/header.c:488:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, body, len);
data/libwebsockets-4.1.4/lib/roles/http/header.c:570:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/libwebsockets-4.1.4/lib/roles/http/minilex.c:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[PARALLEL];
data/libwebsockets-4.1.4/lib/roles/http/minilex.c:204:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char pseudomap[8][16];
data/libwebsockets-4.1.4/lib/roles/http/minilex.c:238:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *rset[200];
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:532:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, wsi->http.ah->data + wsi->http.ah->frags[f].offset,
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:1142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char dotstar[64];
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:1443:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			wsi->rx_frame_type = atoi(pv);
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:1513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[MAX_JWT_SIZE * 2];
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:1568:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char plain[MAX_JWT_SIZE + 1], temp[MAX_JWT_SIZE * 2], csrf[17];
data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h:82:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char buf[128];
data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char initial_handshake_hash_base64[30];
data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char http_proxy_address[128];
data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char multipart_boundary[16];
data/libwebsockets-4.1.4/lib/roles/http/private-lib-roles-http.h:243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char multipart_content_type[64];
data/libwebsockets-4.1.4/lib/roles/http/server/access-log.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char da[64], uri[256];
data/libwebsockets-4.1.4/lib/roles/http/server/access-log.c:71:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(da, "01/Jan/1970:00:00:00 +0000");
data/libwebsockets-4.1.4/lib/roles/http/server/fops-zip.c:320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rp[192];
data/libwebsockets-4.1.4/lib/roles/http/server/fops-zip.c:584:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, hd + fd->pos, (size_t)rlen);
data/libwebsockets-4.1.4/lib/roles/http/server/fops-zip.c:624:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, priv->u.trailer8 + cur, (size_t)rlen);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:248:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int n = atoi(s);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:300:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->uid = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:303:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->gid = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:312:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->count_threads = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:335:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->timeout_secs = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:346:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ip_limit_ah = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:350:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ip_limit_wsi = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:355:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->rlimit_nofile = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:589:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(m, &a->m, sizeof(*m));
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:625:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->port = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:674:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->m.auth_mask = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:677:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->m.cache_max_age = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:694:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->m.cgi_timeout = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:697:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->keepalive_timeout = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:838:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ssl_options_set |= atol(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:841:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ssl_options_clear |= atol(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:846:38:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ssl_client_options_set |= atol(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:849:40:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->info->ssl_client_options_clear |= atol(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:931:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[128];
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:976:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:996:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dd[128];
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:1050:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dd[128];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LWS_MAX_ELEM_NAME];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[LWS_MAX_ELEM_NAME];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char content_type[32];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char content_disp[32];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char content_disp_filename[256];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mime_boundary[128];
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[205], *p;
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:277:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(s->out + s->pos,
data/libwebsockets-4.1.4/lib/roles/http/server/lws-spa.c:537:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(spa->params[n], *buf, len);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:525:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256], sym[2048];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:616:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(sym, "%08llX%08lX",
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:635:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char cache_control[50], *cc = "no-store";
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:830:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:880:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:996:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b64[160], plain[(sizeof(b64) * 3) / 4], *pcolon;
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1093:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ads[96], rpath[256], host[96], *pcolon, *pslash, unix_skt = 0;
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1151:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ads, hit->origin, n);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1161:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.port = atoi(pcolon + 1);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1400:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char content_length_str[32];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char http_version_str[12];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1402:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char http_conn_str[25];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1531:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST), n);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1844:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1887:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(ts.token);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1915:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ipbuf[64];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1972:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbuf[128], *p;
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2067:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ua[384], *msg = NULL;
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2086:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						atoi(rej->value), msg);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2270:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(tbuf, "HTTP/1.1 101 Switching Protocols\x0d\x0a"
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2364:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char peer[64];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2508:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cache_control[50], *cc = "no-store";
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2761:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, other_headers, other_headers_len);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *sp, buffer[32];
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3139:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s->start, s->swallow, s->pos);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3156:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s->start, pc, n);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3175:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		n = sprintf(buffer, "%X\x0d\x0a", args->len);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3178:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(args->p, buffer, n);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c:91:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, c->id->buf, c->id->len);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c:115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, c->will.topic->buf, c->will.topic->len);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c:120:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(p, c->will.message->buf,
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c:140:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, c->username->buf, c->username->len);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt-handshake.c:151:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(p, c->password->buf,
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char erbuf[128];
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:305:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mysub->topic, topic, strlen(topic) + 1);
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:1692:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, buf, len);
data/libwebsockets-4.1.4/lib/roles/mqtt/primitives.c:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(s->buf, buf, len);
data/libwebsockets-4.1.4/lib/roles/mqtt/primitives.c:299:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s->buf + s->pos, *in, span);
data/libwebsockets-4.1.4/lib/roles/pipe/ops-pipe.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[100];
data/libwebsockets-4.1.4/lib/roles/ws/client-parser-ws.c:431:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(wsi->ws->ping_payload_buf + LWS_PRE, pp,
data/libwebsockets-4.1.4/lib/roles/ws/client-parser-ws.c:471:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(wsi->ws->ping_payload_buf + LWS_PRE,
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128], hash[20], key_b64[40];
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:173:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	p += sprintf(p, "\x0d\x0a");
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:205:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			p += sprintf(p, "Sec-WebSocket-Extensions: ");
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:212:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		p += sprintf(p, "\x0d\x0a");
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:216:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		p += sprintf(p, "Sec-WebSocket-Version: %d\x0d\x0a",
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, buf[64];
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ext_name[128];
data/libwebsockets-4.1.4/lib/roles/ws/ext/extension-permessage-deflate.c:111:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			priv->args[oa->option_index] = atoi(oa->start);
data/libwebsockets-4.1.4/lib/roles/ws/ext/extension-permessage-deflate.h:61:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char args[PMD_ARG_COUNT];
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:534:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(wsi->ws->ping_payload_buf + LWS_PRE,
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:1842:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dropmask, wsi->ws->mask, 4);
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:1968:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((struct lws_extension *)vh->ws.extensions, info->extensions,
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:1975:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((struct lws_extension *)&vh->ws.extensions[m],
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:2045:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&wsi->ws->ping_payload_buf[LWS_PRE], &us, 8);
data/libwebsockets-4.1.4/lib/roles/ws/private-lib-roles-ws.h:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char actual_protocol[16];
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ext_name[64], *args, *end = (*p) + budget - 1;
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:343:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			       atoi(lws_hdr_simple_ptr(wsi, WSI_TOKEN_VERSION));
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128], name[64];
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:642:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash[20];
data/libwebsockets-4.1.4/lib/secure-streams/policy-common.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:202:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char **pp, dotstar[32], *q;
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:256:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((uint8_t *)a->curr[LTY_X509].x->ca_der, a->p, a->count);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:358:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				[b->retry_ms_table_count++] = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:362:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_BACKOFF].b->r.conceal_count = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:366:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_BACKOFF].b->r.jitter_percent = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:370:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_BACKOFF].b->r.secs_since_valid_ping = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:374:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_BACKOFF].b->r.secs_since_valid_hangup = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:494:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->port = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:543:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->client_cert = atoi(ctx->buf) + 1;
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:547:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->u.http.resp_expect = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:551:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->timeout_ms = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:638:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(q, ctx->path + ctx->st[ctx->sp - 2].p + 1,
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:643:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(q, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:729:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->u.mqtt.qos = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:733:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->u.mqtt.keep_alive = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:749:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		a->curr[LTY_POLICY].p->u.mqtt.will_qos = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:790:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*pp, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:801:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*pp, ctx->path + n, ctx->path_match_len - n);
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:84:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char boundary[24];	/* --boundary from headers */
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			streamtype[32];
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			rideshare[32];
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:198:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			metadata_name[32];
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		name[32];  /* empty string, then actually TCXR */
data/libwebsockets-4.1.4/lib/secure-streams/private-lib-secure-streams.h:255:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			rideshare_list[128];
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c:247:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *sources[4] = {
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c:256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, *ps[4];
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&p[4], md->name, txc);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:96:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&p[4 + txc], &md[1], md->len);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:444:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&h->ssi, ssi, sizeof(*ssi));
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:448:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ssi->streamtype, strlen(ssi->streamtype) + 1);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:705:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&md[1], value, len);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-process.c:153:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int ff = open("/tmp/z", O_RDWR | O_CREAT | O_APPEND, 0666);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-process.c:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[128];
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-serialize.c:158:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&pre[20], rsp, l);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-serialize.c:220:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, p + 23, si - 23);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out + *pos, replace + (*exp_ofs), budget);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:283:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, buf + LWS_SMD_SS_RX_HEADER_LEN, len - LWS_SMD_SS_RX_HEADER_LEN);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[1024], ep[96];
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:613:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ssi->streamtype, strlen(ssi->streamtype) + 1);
data/libwebsockets-4.1.4/lib/secure-streams/system/auth-api.amazon.com/auth.c:101:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m->expires_secs = atoi(ctx->buf);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:98:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*dest, ls, ll);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[DNS_MAX];
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:467:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[48];
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(in6->sin6_addr.s6_addr, payload, 16);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:507:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in->sin_addr.s_addr, payload, 4);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:615:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)adst.name, nm, n);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ads[48];
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:526:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[48];
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:616:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa46[1], name, nlen + 1);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:638:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa46->sa4.sin_addr, ads, m);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:650:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa46->sa6.sin6_addr, ads, m);
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			domain[64];
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:248:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p + 1, r->xid, 4);
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:258:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, r->mac, 6);
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:430:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(r->domain, p, m);
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:717:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&r[1], iface, n + 1);
data/libwebsockets-4.1.4/lib/system/system.c:93:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, b->u.direct.ptr + ofs, *len);
data/libwebsockets-4.1.4/lib/tls/lws-genec-common.c:79:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(jwk->e[LWS_GENCRYPTO_EC_KEYEL_CRV].buf,
data/libwebsockets-4.1.4/lib/tls/lws-genec-common.c:122:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  (char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf: "no curve name");
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out + 8, in, 8 * c64);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:219:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(a, in, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:220:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, in + 8, 8 * c64);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:233:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(b, out, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:234:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(b + 8, r, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:238:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(out, b, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:240:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(r, b + 8, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:252:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(b, a, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:254:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(b + 8, r, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:258:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(a, b, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:259:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(r, b + 8, 8);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:302:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:321:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(padin, in, len);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:333:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:339:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:345:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:346:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sb, stream_block_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:349:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv_or_nonce_ctr_or_data_unit_16, iv, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:350:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(stream_block_16, sb, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:359:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:369:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iv, iv_or_nonce_ctr_or_data_unit_16, 16);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genaes.c:380:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ctx->tag, stream_block_16, taglen);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:56:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				    (char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf :
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:63:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:277:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:351:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-client.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[128], *p;
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:486:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ss_cert_leadin, n);
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:515:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, el[LWS_GENCRYPTO_RSA_KEYEL_N].buf, el[LWS_GENCRYPTO_RSA_KEYEL_N].len);
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:518:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ss_cert_san_leadin, sizeof(ss_cert_san_leadin));
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:523:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, san_a, SAN_A_LENGTH);
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:525:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ss_cert_sig_leadin, sizeof(ss_cert_sig_leadin));
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:629:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subject[200], *p = subject, *end = p + sizeof(subject) - 1;
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-x509.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf->ns.name[0], name->val.p, name->val.len);
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/platform/ssl_port.h:33:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define ssl_memcpy     memcpy
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1093:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "CA is not trusted");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1096:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "Hostname mismatch");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1099:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "CA key too small");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1102:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "MD key too weak");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1105:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "Cert from the future");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1108:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "Cert expired");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:1111:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(buf, "unknown");
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/platform/ssl_pm.c:833:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(name_cstr, name, namelen);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genaes.c:267:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(tag, buf, outl);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genaes.c:310:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ctx->tag, stream_block_16, taglen);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genec.c:187:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genec.c:377:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[128], *p;
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:392:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[32];
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:435:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(a, (const char *)prot, len);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:684:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tcr->hash, hash, len);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-server.c:814:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *fp = fopen("/tmp/acme-temp-cert", "w+");
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-server.c:930:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char san[256];
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-server.c:1025:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*privkey_pem, p, (int)(long long)bio_len);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-tls.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[160];
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:162:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf->ns.name, tmp, klen);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:263:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[32], *p;
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:483:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, pp, n + 1);
data/libwebsockets-4.1.4/lib/tls/private-network.h:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char alpn_discovered[32];
data/libwebsockets-4.1.4/lib/tls/private-network.h:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ecdh_curve[16];
data/libwebsockets-4.1.4/lib/tls/tls.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cstr[10];
data/libwebsockets-4.1.4/lib/tls/tls.c:131:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cstr, name, len);
data/libwebsockets-4.1.4/lib/tls/tls.c:187:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "rb");
data/libwebsockets-4.1.4/lib/tls/tls.c:273:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pem, inbuf, (size_t)inlen);
data/libwebsockets-4.1.4/lib/tls/tls.c:355:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(name, O_RDONLY), n;
data/libwebsockets-4.1.4/lib/tls/tls.c:356:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1];
data/libwebsockets-4.1.4/lib/tls/tls.c:406:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libwebsockets-4.1.4/lwsws/main.c:60:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char config_dir[128];
data/libwebsockets-4.1.4/lwsws/main.c:244:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(config_dir, "/etc/lwsws");
data/libwebsockets-4.1.4/lwsws/main.c:255:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			debug_level = atoi(optarg);
data/libwebsockets-4.1.4/minimal-examples/abstract/protocols/smtp-client/main.c:28:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dotstar[96];
data/libwebsockets-4.1.4/minimal-examples/abstract/protocols/smtp-client/main.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char payload[2048];
data/libwebsockets-4.1.4/minimal-examples/abstract/protocols/smtp-client/main.c:61:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-async-dns/main.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-async-dns/main.c:148:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "unknown");
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-async-dns/main.c:220:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-async-dns/main.c:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:29:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filepath[256];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16384];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:56:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			logs = atoi(optarg);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:91:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ft = open(index_filepath, O_CREAT | O_WRONLY | O_TRUNC, 0600);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:117:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(argv[optind], O_RDONLY);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/lws-genaes.c:311:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nonce_counter, ctr_iv, sizeof(ctr_iv));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/lws-genaes.c:336:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nonce_counter, ctr_iv, sizeof(ctr_iv));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/main.c:25:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048], compact[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:289:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:495:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[4096], compact[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:623:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[4096], compact[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:755:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[4096], compact[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1049:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1231:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1380:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, jwa_b2_e, sizeof(jwa_b2_e));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1521:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1536:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, jwa_b3_e, sizeof(jwa_b3_e));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1639:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048], *p;
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1788:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[3072], compact[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1968:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2023:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char compact[4096];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048], temp[256], *p = buf, *end = buf + sizeof(buf) - 1, *enc_ptr;
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:282:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048], *in;
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:329:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(in, rfc7515_rsa_a1, l + 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:416:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048], *p;
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:488:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, es256_cser, l + 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:577:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[2048], *p;
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:649:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, es512_cser, l + 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:692:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[8192];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/main.c:27:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lejp/main.c:154:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_dsh/main.c:337:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_sequencer/main.c:116:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_sequencer/main.c:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uri[128], path[128];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_sequencer/main.c:338:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_smd/main.c:127:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 			hostname[32];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:383:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 			name[32];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char task_uuid[65];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:469:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 		ssid[33];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:470:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		passphrase[64];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:472:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		bssid[6];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:529:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct_sqlite/main.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 			str1[32];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct_sqlite/main.c:84:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:303:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out + *pos, replace + (*exp_ofs), budget);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:328:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dotstar[512];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:331:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:337:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		flags = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:344:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char obuf[128];
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lwsac/main.c:31:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-smtp_client/main.c:195:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/client-server/minimal-ws-proxy/minimal-ws-proxy.c:75:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/client-server/minimal-ws-proxy/protocol_lws_minimal.c:203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[MAX_SIZE], compact[MAX_SIZE];
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:94:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[32768];
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:81:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:87:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		bits = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:150:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(p, LWS_O_CREAT | LWS_O_TRUNC | LWS_O_WRONLY, 0600);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c:15:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[MAX_SIZE], compact[MAX_SIZE];
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c:32:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:18:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int n, fd = open(filename, LWS_O_RDONLY);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pembuf[6144];
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:69:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-client/minimal-dbus-client.c:235:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/minimal-dbus-ws-proxy-testclient.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _uri[96];
data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/minimal-dbus-ws-proxy-testclient.c:317:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char payload[64];
data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/minimal-dbus-ws-proxy-testclient.c:381:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-client/minimal-dbus-ws-proxy-testclient/minimal-dbus-ws-proxy-testclient.c:384:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		autoexit_budget = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-server/main.c:472:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/main.c:73:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[128], uri_copy[512];
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:359:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)amsg.payload + LWS_PRE, payload, amsg.len);
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:741:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char strbuf[256];
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:747:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(strbuf, in, l);
data/libwebsockets-4.1.4/minimal-examples/gtk/minimal-gtk/main.c:77:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/libwebsockets-4.1.4/minimal-examples/gtk/minimal-gtk/main.c:95:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-attach/minimal-http-client-attach.c:46:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-attach/minimal-http-client-attach.c:76:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-attach/minimal-http-client-attach.c:221:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-captive-portal/minimal-http-client-captive-portal.c:45:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-captive-portal/minimal-http-client-captive-portal.c:75:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-captive-portal/minimal-http-client-captive-portal.c:289:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-certinfo/minimal-http-client-certinfo.c:88:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-certinfo/minimal-http-client-certinfo.c:152:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-custom-headers/minimal-http-client-custom-headers.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[32];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-custom-headers/minimal-http-client-custom-headers.c:98:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-custom-headers/minimal-http-client-custom-headers.c:162:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:66:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:99:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:189:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:205:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.manual_initial_tx_credit = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:211:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		each = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:281:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	n = open("./warmcat.com.cer", O_RDONLY);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-hugeurl/minimal-http-client-hugeurl.c:103:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char urlpath[64], intr;
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 1024], *start = &buf[LWS_PRE], *p = start,
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:101:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:374:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.simultaneous_ssl_restriction = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:414:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(urlpath, "/formtest");
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:419:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(urlpath, "/testserver/formtest");
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:432:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:438:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(p) <= COUNT && atoi(p))
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:438:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(p) <= COUNT && atoi(p))
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:439:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			count = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-post/minimal-http-client-post.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 1024], *start = &buf[LWS_PRE], *p = start,
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-post/minimal-http-client-post.c:250:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:46:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char b[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:88:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dotstar[128];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:111:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:211:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:232:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i.manual_initial_tx_credit = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:304:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	n = open("./warmcat.com.cer", O_RDONLY);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-basicauth/minimal-http-server-basicauth.c:90:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-cgi/minimal-http-server.c:21:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cgi_script_fullpath[256];
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-cgi/minimal-http-server.c:64:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-cgi/minimal-http-server.c:70:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char cwd[128];
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-custom-headers/minimal-http-server-custom-headers.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[128 + LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-custom-headers/minimal-http-server-custom-headers.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[32], *pr = &pss->result[LWS_PRE];
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-custom-headers/minimal-http-server-custom-headers.c:90:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy((char *)start, "hello");
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-custom-headers/minimal-http-server-custom-headers.c:168:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-deaddrop/minimal-http-server-deaddrop.c:143:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[128];
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c:101:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pss->budget = atoi((char *)in + 1);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c:268:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-demos/minimal-http-server-eventlib-demos.c:142:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-foreign/minimal-http-server-eventlib-foreign.c:141:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-smp/minimal-http-server-eventlib-smp.c:102:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib-smp/minimal-http-server-eventlib-smp.c:119:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.count_threads = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-eventlib/minimal-http-server-eventlib.c:74:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c:124:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post-file/minimal-http-server-form-post-file.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[128];		/* the filename of the uploaded file */
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post-file/minimal-http-server-form-post-file.c:238:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post-lwsac/minimal-http-server-form-post.c:187:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c:187:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c:207:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-fulltext-search/minimal-http-server.c:98:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-h2-long-poll/minimal-http-server.c:124:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-mimetypes/minimal-http-server-mimetypes.c:70:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-multivhost/minimal-http-server.c:102:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-proxy/minimal-http-server-proxy.c:56:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-smp/minimal-http-server-smp.c:90:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-smp/minimal-http-server-smp.c:103:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.count_threads = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse-ring/minimal-http-server-sse-ring.c:379:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse/minimal-http-server-sse.c:199:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-80/minimal-http-server-tls-80.c:87:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-mem/minimal-http-server-tls-mem.c:406:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls/minimal-http-server-tls.c:65:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server/minimal-http-server.c:63:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client-multi/minimal-mqtt-client-multi.c:401:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		stagger_us = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client-multi/minimal-mqtt-client-multi.c:404:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		count = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-adopt-tcp/minimal-raw-adopt-tcp.c:109:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-adopt-udp/minimal-raw-adopt-udp.c:69:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sendbuf, in, sendlen);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-adopt-udp/minimal-raw-adopt-udp.c:157:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-fallback-http-server/minimal-raw-fallback-http-server.c:65:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pss->buf, in, len);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-fallback-http-server/minimal-raw-fallback-http-server.c:105:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-file/minimal-raw-file.c:25:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filepath[256];
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-file/minimal-raw-file.c:128:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-netcat/minimal-raw-netcat.c:153:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-netcat/minimal-raw-netcat.c:197:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		us_wait_after_input_close = 1000 * atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy-fallback/minimal-raw-proxy-fallback.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outward[256];
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy-fallback/minimal-raw-proxy-fallback.c:87:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy/minimal-raw-proxy.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outward[256];
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-proxy/minimal-raw-proxy.c:61:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-serial/minimal-raw-file.c:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filepath[256];
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-serial/minimal-raw-file.c:200:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-vhost/minimal-raw-vhost.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vhd->buf, in, vhd->len);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-vhost/minimal-raw-vhost.c:130:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/alexa.c:494:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int ff = open("/tmp/z1", O_RDWR | O_CREAT | O_APPEND, 0666);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/alexa.c:515:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, metadata + m->pos, *len);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/main.c:370:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:139:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&m->buf[m->head], buf, len);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:144:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&m->buf[m->head], buf, n1);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:146:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(m->buf, buf, len - n1);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:182:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, wav + m->pos, *len);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:207:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, metadata + m->pos, *len);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:373:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("./year.wav", O_RDONLY);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/main.c:324:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-client-tx/minimal-secure-streams-client-tx.c:145:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-metadata/minimal-secure-streams.c:329:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-policy2c/minimal-secure-streams.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prev[128], curr[128];
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-policy2c/minimal-secure-streams.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64], buf1[64];
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:362:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, postbody + m->pos, *len);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:518:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		timeout_ms = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:530:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-proxy/main.c:247:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-proxy/main.c:251:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-seq/minimal-secure-streams.c:394:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-staticpolicy/minimal-secure-streams.c:216:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams/minimal-secure-streams.c:427:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		timeout_ms = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams/minimal-secure-streams.c:439:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.ss_proxy_port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-binance/main.c:225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numbuf[16];
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/minimal-ws-client-echo.c:108:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/minimal-ws-client-echo.c:118:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/protocol_lws_minimal_client_echo.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[128];
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-echo/protocol_lws_minimal_client_echo.c:237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-ping/minimal-ws-client-ping.c:117:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-ping/minimal-ws-client-ping.c:144:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-pmd-bulk/minimal-ws-client-pmd-bulk.c:91:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-pmd-bulk/protocol_lws_minimal_pmd_bulk.c:185:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, &redundant_string[m], s);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-rx/minimal-ws-client.c:91:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-spam/minimal-ws-client-spam.c:200:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-spam/minimal-ws-client-spam.c:223:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-spam/minimal-ws-client-spam.c:226:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		limit = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-spam/minimal-ws-client-spam.c:229:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		concurrent = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-tx/minimal-ws-client.c:315:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client/minimal-ws-client.c:181:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-broker/minimal-ws-broker.c:73:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-broker/protocol_lws_minimal.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-broker/protocol_lws_minimal.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-echo/minimal-ws-server-echo.c:81:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-echo/minimal-ws-server-echo.c:89:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-echo/protocol_lws_minimal_server_echo.c:193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/minimal-ws-server-pmd-bulk.c:106:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/protocol_lws_minimal_pmd_bulk.c:149:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, &redundant_string[m], s);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/minimal-ws-server-pmd-corner.c:83:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/protocol_lws_minimal.c:220:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LWS_PRE + 2048];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/protocol_lws_minimal.c:229:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pss->last = atoi((char *)buf + 1);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd-corner/protocol_lws_minimal.c:243:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + LWS_PRE, uncompressible,
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd/minimal-ws-server-pmd.c:83:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-pmd/protocol_lws_minimal.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)vhd->amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-ring/minimal-ws-server-ring.c:73:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-ring/protocol_lws_minimal.c:250:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/minimal-ws-server-threadpool.c:107:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[64];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/minimal-ws-server.c:129:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/protocol_lws_minimal.c:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[LWS_PRE + 256];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/minimal-ws-server.c:117:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/protocol_lws_minimal.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[LWS_PRE + 256];
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads/minimal-ws-server.c:107:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-timer/minimal-ws-server.c:104:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server/minimal-ws-server.c:78:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		logs = atoi(p);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server/protocol_lws_minimal.c:127:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)vhd->amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/plugin-standalone/protocol_example_standalone.c:64:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LWS_PRE + 512];
data/libwebsockets-4.1.4/plugin-standalone/protocol_example_standalone.c:93:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		n = sprintf((char *)p, "%d", pss->number++);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char replay_nonce[64];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chall_token[64];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char challenge_uri[256];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char detail[64];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char status[16];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_auth[256];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char http01_mountpoint[256];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char urls[6][100]; /* directory contents */
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char active_url[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char authz_url[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char order_url[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char finalize_url[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cert_url[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char acct_id[100];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *pvop[LWS_TLS_TOTAL_COUNT];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:122:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *pvop_active[LWS_TLS_TOTAL_COUNT];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:368:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(s->dest + s->pos, ctx->buf, ctx->npos);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:587:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[200], _url[256];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:695:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:773:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 2536], *start = buf + LWS_PRE, *p = start,
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:813:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(start, pvo->value, n);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1093:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			n = sprintf(buf, "%d", ac->len);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1197:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)in)[len] = '\0';
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1206:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)in)[len] = '\0';
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1210:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)in)[len] = '\0';
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1217:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ac->buf[ac->cpos], in, len);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer[2048 + LWS_PRE];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user[32];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[LWS_PRE + LWS_RECOMMENDED_MIN_HEADER_SPACE];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[256];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user[32];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filepath[256], subdir[3][128], *p;
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:224:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dire[1], filepath + initial, m);
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:263:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename2[256];
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[256], *wp;
data/libwebsockets-4.1.4/plugins/protocol_client_loopback_test.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/libwebsockets-4.1.4/plugins/protocol_client_loopback_test.c:139:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf + LWS_PRE, "Made it");
data/libwebsockets-4.1.4/plugins/protocol_lws_mirror.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[30];
data/libwebsockets-4.1.4/plugins/protocol_lws_mirror.c:199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[300], update_worst, sent_something, *pn = name;
data/libwebsockets-4.1.4/plugins/protocol_lws_mirror.c:439:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)amsg.payload + LWS_PRE, in, len);
data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fifo_path[100];
data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c:90:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[128];
data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c:178:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[256];
data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c:249:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pss->buf, in, len);
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filepath[128];
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32768];
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char contents[256], pure[256], *p = v->d.buf + LWS_PRE,
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:80:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(pure, "(unknown)");
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:148:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				v->hide_vhosts = atoi(pvo->value);
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:150:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				v->period_s = (atoi(pvo->value) + 500) / 1000;
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:172:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, priv->ptr + priv->pos, chunk);
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:260:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(aps, authorized_key, s);
data/libwebsockets-4.1.4/plugins/protocol_lws_status.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user_agent[256];
data/libwebsockets-4.1.4/plugins/protocol_lws_status.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LWS_PRE + 384], ip[24], *start = buf + LWS_PRE - 1, *p = start,
data/libwebsockets-4.1.4/plugins/protocol_lws_status.c:127:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(pss->user_agent, "unknown");
data/libwebsockets-4.1.4/plugins/protocol_lws_status.c:172:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(ip, "unknown");
data/libwebsockets-4.1.4/plugins/protocol_post_demo.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[LWS_PRE + LWS_RECOMMENDED_MIN_HEADER_SPACE];
data/libwebsockets-4.1.4/plugins/protocol_post_demo.c:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[64];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rx_enabled[2];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char closed[2];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char established[2];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[128];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:114:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[128];
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:226:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				vhd->port = atoi(ts.token);
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:304:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pkt.payload, in, len);
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:461:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pkt.payload, in, len);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/chacha.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char sigma[16] = "expand 32-byte k";
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/chacha.c:63:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char tau[16] = "expand 16-byte k";
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:61:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char extsk[64];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:88:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char r[32];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:89:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char s[32];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:90:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char extsk[64];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:92:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hmg[crypto_hash_sha512_BYTES];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:93:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hram[crypto_hash_sha512_BYTES];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:180:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char t2[32];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ed25519.c:183:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hram[crypto_hash_sha512_BYTES];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.c:101:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_unpack(fe25519 *r, const unsigned char x[32])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.c:109:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_pack(unsigned char r[32], const fe25519 *x)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.h:38:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/fe25519.h:40:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_pack(unsigned char r[32], const fe25519 *x);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.c:196:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int ge25519_unpackneg_vartime(ge25519_p3 *r, const unsigned char p[32])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.c:243:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void ge25519_pack(unsigned char r[32], const ge25519_p3 *p)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.c:266:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char b[127];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.c:308:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  signed char b[85];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.h:33:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int ge25519_unpackneg_vartime(ge25519 *r, const unsigned char p[32]);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/ge25519.h:35:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void ge25519_pack(unsigned char r[32], const ge25519 *p);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/poly1305.c:28:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
poly1305_auth(unsigned char out[POLY1305_TAGLEN],
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/poly1305.c:29:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      const unsigned char *m, size_t inlen,
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/poly1305.c:30:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      const unsigned char key[POLY1305_KEYLEN])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/poly1305.c:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char mp[16];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:36:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char t[32];
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:102:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from32bytes(sc25519 *r, const unsigned char x[32])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:111:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void shortsc25519_from16bytes(shortsc25519 *r, const unsigned char x[16])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:117:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from64bytes(sc25519 *r, const unsigned char x[64])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:134:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:220:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window3(signed char r[85], const sc25519 *s)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:257:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window5(signed char r[51], const sc25519 *s)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.c:294:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_2interleave2(unsigned char r[127], const sc25519 *s1, const sc25519 *s2)
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:42:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from32bytes(sc25519 *r, const unsigned char x[32]);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:44:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void shortsc25519_from16bytes(shortsc25519 *r, const unsigned char x[16]);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:46:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from64bytes(sc25519 *r, const unsigned char x[64]);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:50:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:69:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window3(signed char r[85], const sc25519 *s);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:74:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window5(signed char r[51], const sc25519 *s);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/sc25519.h:76:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_2interleave2(unsigned char r[127], const sc25519 *s1, const sc25519 *s2);
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/smult_curve25519_ref.c:124:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void mainloop(unsigned int work[64],const unsigned char e[32])
data/libwebsockets-4.1.4/plugins/ssh-base/crypto/smult_curve25519_ref.c:252:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char e[32];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-plugin-ssh.h:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char term[16];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:422:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fp[128];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:469:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[64];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:470:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char last_auth_req_username[32];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:471:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char last_auth_req_service[32];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:483:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char aux[64];
data/libwebsockets-4.1.4/plugins/ssh-base/include/lws-ssh.h:494:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char V_C[64]; /* Client version String */
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:40:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*p, blob, len);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:64:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf256, key_leadin, sizeof(key_leadin) - 1);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:67:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p + 32 + sizeof(key_sep) - 1, p, 32);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, key_sep, sizeof(key_sep) - 1);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, key_privl, sizeof(key_privl) - 1);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:73:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, key_trail, sizeof(key_trail) - 1);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:187:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pub, p, LWS_SIZE_EC25519_PUBKEY);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:194:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pri, p, LWS_SIZE_EC25519_PRIKEY);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:267:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, pool, m);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:281:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char basepoint[32] = { 9 };
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyt[33];
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:509:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pss->session_id, temp, LWS_SIZE_EC25519);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:86:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)(*p), s, len);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyt[32];
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:302:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyt[32];
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1898:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pss->packet_assembly[pss->pa_pos], p, cp);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1950:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, ps, n);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1972:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lang[10];
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2153:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pss->kex->I_S, buf + LWS_PRE + 5, m);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2158:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ps, pss->kex->kex_r, pss->kex->kex_r_len);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2193:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy((char *)pp, "publickey");
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2240:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pp, pss->ua->pubkey, pss->ua->pubkey_len);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:2351:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy((char *)pp, "exit-status");
data/libwebsockets-4.1.4/plugins/ssh-base/telnet.c:197:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf + LWS_PRE, init, sizeof(init));
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:145:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char address[8192];
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:147:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ca_cert[8192];
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:148:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char client_cert[8192];
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:149:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char client_cert_key[8192];
data/libwebsockets-4.1.4/test-apps/android/app/src/main/jni/LwsService.cpp:235:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ((char *)in)[len] = '\0';
data/libwebsockets-4.1.4/test-apps/test-client.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char crl_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-client.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char which_wsi[10], buf[50 + LWS_PRE];
data/libwebsockets-4.1.4/test-apps/test-client.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((char *)in)[len] = '\0';
data/libwebsockets-4.1.4/test-apps/test-client.c:158:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(which_wsi, "multi %d", n);
data/libwebsockets-4.1.4/test-apps/test-client.c:214:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[1024 + LWS_PRE];
data/libwebsockets-4.1.4/test-apps/test-client.c:260:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf + LWS_PRE, "text=hello&send=Send+the+form");
data/libwebsockets-4.1.4/test-apps/test-client.c:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char errbuf[256];
data/libwebsockets-4.1.4/test-apps/test-client.c:321:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LWS_PRE + block_size], *p;
data/libwebsockets-4.1.4/test-apps/test-client.c:401:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			l += sprintf((char *)&buf[LWS_PRE + l],
data/libwebsockets-4.1.4/test-apps/test-client.c:583:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[300];
data/libwebsockets-4.1.4/test-apps/test-client.c:584:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cert_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-client.c:585:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-client.c:586:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ca_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-client.c:607:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			lws_set_log_level(atoi(optarg), NULL);
data/libwebsockets-4.1.4/test-apps/test-client.c:618:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-client.c:630:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ietf_version = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-lejp.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024], *p = buf, *end = &buf[sizeof(buf)];
data/libwebsockets-4.1.4/test-apps/test-lejp.c:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/libwebsockets-4.1.4/test-apps/test-server.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char crl_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-server.c:92:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libwebsockets-4.1.4/test-apps/test-server.c:213:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fop_fd = fops_plat.open(fops, vfs_path, vpath, flags);
data/libwebsockets-4.1.4/test-apps/test-server.c:386:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char interface_name[128] = "";
data/libwebsockets-4.1.4/test-apps/test-server.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cert_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-server.c:389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-server.c:390:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ca_path[1024] = "";
data/libwebsockets-4.1.4/test-apps/test-server.c:424:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			uid = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-server.c:427:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gid = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-server.c:430:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			debug_level = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-server.c:450:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			info.port = atoi(optarg);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:299:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(aps, authorized_key, s);
data/libwebsockets-4.1.4/win32port/dirent/dirent-win32.h:239:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t d_name[PATH_MAX+1];
data/libwebsockets-4.1.4/win32port/dirent/dirent-win32.h:279:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d_name[PATH_MAX+1];
data/libwebsockets-4.1.4/win32port/dirent/dirent-win32.h:695:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t wname[PATH_MAX + 1];
data/libwebsockets-4.1.4/win32port/zlib/crc32.c:163:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        out = fopen("crc32.h", "w");
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:32:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024];
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:61:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "unknown win32 error (%ld)", error);
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:160:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open(path,
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:221:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(path, "<fd:%d>", fd);   /* for debugging */
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:515:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(state->msg, ": ");
data/libwebsockets-4.1.4/win32port/zlib/gzread.c:216:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(state->next + state->have, strm->next_in, strm->avail_in);
data/libwebsockets-4.1.4/win32port/zlib/gzread.c:405:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, state->next, n);
data/libwebsockets-4.1.4/win32port/zlib/gzread.c:457:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1];
data/libwebsockets-4.1.4/win32port/zlib/gzread.c:589:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, state->next, n);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:194:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(strm->next_in + strm->avail_in, buf, n);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:225:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1];
data/libwebsockets-4.1.4/win32port/zlib/inflate.c:607:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
data/libwebsockets-4.1.4/win32port/zlib/inflate.c:1350:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[4];       /* to restore bit buffer to byte string */
data/libwebsockets-4.1.4/win32port/zlib/trees.c:335:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *header = fopen("trees.h", "w");
data/libwebsockets-4.1.4/win32port/zlib/zutil.c:14:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const z_errmsg[10] = {
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:43:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:101:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:175:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define F_OPEN(name, mode) fopen((name), (mode))
data/libwebsockets-4.1.4/win32port/zlib/zutil.h:234:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define zmemcpy memcpy
data/libwebsockets-4.1.4/include/libwebsockets.h:404:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t read(int fd, void *buf, size_t count);
data/libwebsockets-4.1.4/include/libwebsockets/lws-gpio.h:54:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)(_lws_plat_gpio_t gpio);
data/libwebsockets-4.1.4/include/libwebsockets/lws-i2c.h:39:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int  (*read)(const struct lws_i2c_ops *ctx);
data/libwebsockets-4.1.4/include/libwebsockets/lws-vfs.h:59:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define LWS_FOP_READ		read
data/libwebsockets-4.1.4/lib/abstract/protocols/smtp/smtp.c:275:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(p);
data/libwebsockets-4.1.4/lib/core-net/connect.c:256:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size += strlen(cisin[n]) + 1;
data/libwebsockets-4.1.4/lib/core-net/connect.c:273:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			m = (int)strlen(cisin[n]) + 1;
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:636:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(unsigned char *)buf, (int)strlen(buf), p, end))
data/libwebsockets-4.1.4/lib/core-net/dummy-callback.c:667:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(n, buf, sizeof(buf) - 2);
data/libwebsockets-4.1.4/lib/core-net/network.c:67:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(rip, rip + 7, strlen(rip) - 6);
data/libwebsockets-4.1.4/lib/core-net/network.c:223:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (sizeof(serv_unix.sun_path) <= strlen(iface)) {
data/libwebsockets-4.1.4/lib/core-net/network.c:228:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = (int)(sizeof(uint16_t) + strlen(iface));
data/libwebsockets-4.1.4/lib/core-net/network.c:609:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ts.len = strlen(ads);
data/libwebsockets-4.1.4/lib/core-net/server.c:208:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, contents, sizeof(contents) - 1);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:124:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(wsi->a.vhost->socks_user);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:125:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		passwd_len = strlen(wsi->a.vhost->socks_password);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:151:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(wsi->stash->cis[CIS_ADDRESS]);
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:207:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p && strlen(p) > 0 && strlen(p) < 95)
data/libwebsockets-4.1.4/lib/core-net/socks5-client.c:207:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p && strlen(p) > 0 && strlen(p) < 95)
data/libwebsockets-4.1.4/lib/core-net/vhost.c:581:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += (int)strlen(info->ssl_cert_filepath) + 1;
data/libwebsockets-4.1.4/lib/core-net/vhost.c:583:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += (int)strlen(info->ssl_private_key_filepath) + 1;
data/libwebsockets-4.1.4/lib/core-net/vhost.c:589:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = (int)strlen(info->ssl_cert_filepath) + 1;
data/libwebsockets-4.1.4/lib/core-net/vhost.c:596:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(info->ssl_private_key_filepath) + 1);
data/libwebsockets-4.1.4/lib/core-net/wsi.c:521:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 0, sl = (int)strlen(name);
data/libwebsockets-4.1.4/lib/core/context.c:940:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(context->server_string);
data/libwebsockets-4.1.4/lib/core/context.c:1120:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(context->pss_policies_json));
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:361:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *d = lws_malloc(strlen(s) + 1, "strdup");
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:416:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t nl = strlen(name);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:471:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (al != strlen(comp))
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:740:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, size - 1);
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:1209:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = (int)strlen(val), c = argc;
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:1216:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (!argv[c + 1] || strlen(argv[c + 1]) > 1024)
data/libwebsockets-4.1.4/lib/core/libwebsockets.c:1358:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(p, "unknown value", len);
data/libwebsockets-4.1.4/lib/drivers/button/lws-button.c:232:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		active = bc->gpio_ops->read(bc->button_map[n].gpio) ^
data/libwebsockets-4.1.4/lib/drivers/i2c/bitbang/lws-bb-i2c.c:49:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ctx->gpio->read(ctx->sda))
data/libwebsockets-4.1.4/lib/drivers/i2c/bitbang/lws-bb-i2c.c:68:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (!ctx->gpio->read(ctx->scl))
data/libwebsockets-4.1.4/lib/drivers/i2c/bitbang/lws-bb-i2c.c:94:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = ctx->gpio->read(ctx->sda);
data/libwebsockets-4.1.4/lib/drivers/i2c/bitbang/lws-bb-i2c.c:114:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (ctx->gpio->read(ctx->sda))
data/libwebsockets-4.1.4/lib/drivers/spi/bitbang/lws-bb-spi.c:84:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			u = (u << 1) | !!ctx->gpio->read(ctx->miso);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:239:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	aidlen = (int)strlen(aid);
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:287:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    lws_genhash_update(&hash_ctx, be32((uint32_t)strlen(aid), &t), 4) ||
data/libwebsockets-4.1.4/lib/jose/jwe/jwe.c:763:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p1 += strlen(p1);
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:773:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(p);
data/libwebsockets-4.1.4/lib/jose/jwk/jwk.c:792:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				m = (int)strlen(p);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:902:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(flattened + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:907:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(flattened + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:913:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n += strlen(flattened + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:919:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(flattened + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:936:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(compact + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:942:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(compact + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:948:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(compact + n);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:998:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(jose.alg->alg);
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1065:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  strlen(alg) + 10, 0)) {
data/libwebsockets-4.1.4/lib/jose/jws/jws.c:1135:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*out_len = strlen(out);
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:191:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		il = strlen(in);
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:247:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				      strlen(plaintext[test]), buf, sizeof buf);
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:248:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (n != strlen(coded[test]) || strcmp(buf, coded[test])) {
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:256:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (n != strlen(plaintext[test]) ||
data/libwebsockets-4.1.4/lib/misc/base64-decode.c:261:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(plaintext[test]));
data/libwebsockets-4.1.4/lib/misc/daemonize.c:120:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/lib/misc/daemonize.c:139:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(_lock_path) + 1;
data/libwebsockets-4.1.4/lib/misc/daemonize.c:188:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/libwebsockets-4.1.4/lib/misc/dir.c:40:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/libwebsockets-4.1.4/lib/misc/dir.c:304:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(lde->name) < 7)
data/libwebsockets-4.1.4/lib/misc/diskcache.c:158:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ren, cache, sizeof(ren) - 1);
data/libwebsockets-4.1.4/lib/misc/diskcache.c:365:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->name, de->d_name, sizeof(p->name) - 1);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:104:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ra = read(jtf->fd, buf, 4);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:115:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ra = read(jtf->fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:133:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(result, (char *)&buf[bp], m);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:153:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(jtf->fd, buf, TRIE_FILE_HDR_SIZE) != TRIE_FILE_HDR_SIZE) {
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:233:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ra = read(jtf->fd, buf, _size); \
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:410:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nl = (int)strlen(ftsp->needle);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:659:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		fplen = (int)strlen(path);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:717:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				m = read(ofd, lbuf, sizeof(lbuf) - 1);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:733:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				m = (int)strlen(ebuf);
data/libwebsockets-4.1.4/lib/misc/fts/trie-fd.c:888:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ch->name, (char *)&buf[bp], max);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:342:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(fp->filepath, filepath, sizeof(fp->filepath) - 1);
data/libwebsockets-4.1.4/lib/misc/fts/trie.c:1167:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = (int)strlen(fp->filepath);
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:757:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			budget = strlen(q); /* how much unescaped is left */
data/libwebsockets-4.1.4/lib/misc/lws-struct-lejp.c:766:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			m = strlen((const char *)buf);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:155:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				lim = strlen(cv[n]);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:244:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t sql_est = 46 + strlen(schema->colname) + 1;
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:277:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sql_est += strlen(map[n].colname) + 2;
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:314:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			sql_est -= strlen(map[n].colname) + 2;
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:387:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			m += strlen(sql + m);
data/libwebsockets-4.1.4/lib/misc/lws-struct-sqlite.c:395:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				m += strlen(sql + m);
data/libwebsockets-4.1.4/lib/misc/lwsac/cached-file.c:194:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rd = read(fd, a, s.st_size);
data/libwebsockets-4.1.4/lib/misc/romfs.c:74:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen((const char *)cache);
data/libwebsockets-4.1.4/lib/plat/freertos/esp32/drivers/netdev/wifi-esp32.c:142:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m = strlen((const char *)ar->ssid);
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-file.c:89:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fops_fd->fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/freertos/freertos-sockets.c:306:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = (int)read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:47:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
char *strncpy(char *dest, const char *src, size_t limit)
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:117:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n = strlen(line);
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:245:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ntpsrv && strlen(ntpsrv) < 64) {
data/libwebsockets-4.1.4/lib/plat/optee/lws-plat-optee.c:249:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(ntpsrv));
data/libwebsockets-4.1.4/lib/plat/optee/network.c:172:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(pt->fds[n].fd, &buf, 1) != 1)
data/libwebsockets-4.1.4/lib/plat/optee/network.c:294:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = (int)read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-file.c:69:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-file.c:147:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read((int)fop_fd->fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-misc.c:39:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(ms * LWS_US_PER_MS);
data/libwebsockets-4.1.4/lib/plat/unix/unix-misc.c:70:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (size_t)read(context->fd_random, (char *)buf, len);
data/libwebsockets-4.1.4/lib/plat/unix/unix-plugins.c:45:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(sofilename) < 6)
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:44:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, r, context->pt_serv_buf_size - 1);
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:102:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ntpsrv && strlen(ntpsrv) < 64) {
data/libwebsockets-4.1.4/lib/plat/unix/unix-resolv.c:106:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(ntpsrv));
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:163:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(vhost->iface)) < 0) {
data/libwebsockets-4.1.4/lib/plat/unix/unix-sockets.c:502:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = (int)read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/windows/windows-file.c:171:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/windows/windows-resolv.c:57:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ntpsrv && strlen(ntpsrv) < 64) {
data/libwebsockets-4.1.4/lib/plat/windows/windows-resolv.c:61:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(ntpsrv));
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:299:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t bufferlen = strlen(src) + 1;
data/libwebsockets-4.1.4/lib/plat/windows/windows-sockets.c:425:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = (int)read(fd, buf, len);
data/libwebsockets-4.1.4/lib/plat/windows/windows-spawn.c:485:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p);
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:135:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sumend = sum + strlen(cgi->summary) - 1;
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:670:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(n, &c, 1);
data/libwebsockets-4.1.4/lib/roles/cgi/cgi-server.c:821:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(n, start, sizeof(buf) - LWS_PRE);
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:386:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			*len = (int)strlen(http2_canned[index]);
data/libwebsockets-4.1.4/lib/roles/h2/hpack.c:1413:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (int)strlen((char *)name);
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:376:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_issue_raw(wsi, (uint8_t *)preface, strlen(preface)) !=
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:377:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(int)strlen(preface))
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:2380:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(meth), &p, end))
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:2514:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(lws_hdr_simple_ptr(wsi,
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:2559:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(wsi->a.vhost->ss_handle->policy->
data/libwebsockets-4.1.4/lib/roles/h2/http2.c:2567:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(wsi->a.protocol->name), &p, end))
data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c:182:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c:329:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		goto read;
data/libwebsockets-4.1.4/lib/roles/h2/ops-h2.c:934:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				         strlen(w->h2.pending_status_body +
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:345:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lws_inform_client_conn_fail(wsi, (void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:462:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sau.sun_path, ads, sizeof(sau.sun_path));
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:698:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = (int)(sizeof(uint16_t) + strlen(sau.sun_path));
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:700:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = (int)(sizeof(uint16_t) + strlen(&sau.sun_path[1]) + 1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:807:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_inform_client_conn_fail(wsi,(void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:862:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lws_inform_client_conn_fail(wsi, (void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1191:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size += strlen(path) + 1 + strlen(address) + 1 + strlen(host) + 1 + 1;
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1191:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size += strlen(path) + 1 + strlen(address) + 1 + strlen(host) + 1 + 1;
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1191:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size += strlen(path) + 1 + strlen(address) + 1 + strlen(host) + 1 + 1;
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1217:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(p, address, strlen(address) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1219:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p += strlen(address) + 1;
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1220:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(p, host, strlen(host) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1222:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p += strlen(host) + 1;
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1223:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(p, path, strlen(path) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1326:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(&stash[1], path, size - 1 < strlen(path) + 1 ?
data/libwebsockets-4.1.4/lib/roles/http/client/client-handshake.c:1327:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					size - 1 : strlen(path) + (size_t)1);
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:494:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_inform_client_conn_fail(wsi, (void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1007:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = (int)strlen(cce);
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1242:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t n = strlen(user), m = strlen(pw);
data/libwebsockets-4.1.4/lib/roles/http/client/client-http.c:1242:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t n = strlen(user), m = strlen(pw);
data/libwebsockets-4.1.4/lib/roles/http/compression/stream.c:98:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(lcs_available[n]->encoding_name), p, end))
data/libwebsockets-4.1.4/lib/roles/http/header.c:163:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    			(int)strlen(content_type), p, end))
data/libwebsockets-4.1.4/lib/roles/http/header.c:216:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(ka[t]), p, end))
data/libwebsockets-4.1.4/lib/roles/http/header.c:335:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(headers->value), p, end))
data/libwebsockets-4.1.4/lib/roles/http/header.c:348:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					(int)strlen(headers->value), p, end))
data/libwebsockets-4.1.4/lib/roles/http/header.c:405:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       (int)strlen(wsi->a.vhost->http.error_document_404),
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:566:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dst, &wsi->http.ah->data[wsi->http.ah->frags[n].offset],
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:629:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dst, &wsi->http.ah->data[ll + UHO_NAME + nlen], n);
data/libwebsockets-4.1.4/lib/roles/http/parsers.c:1466:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n, bl = (int)strlen(name);
data/libwebsockets-4.1.4/lib/roles/http/server/access-log.c:87:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uri, uri_ptr, m);
data/libwebsockets-4.1.4/lib/roles/http/server/access-log.c:171:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(p) > sizeof(ass) - 6 - l) {
data/libwebsockets-4.1.4/lib/roles/http/server/fops-zip.c:351:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m = lws_fops_zip_scan(priv, vpath, (int)strlen(vpath));
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:595:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     strlen(mount_protocols[n]))) {
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:599:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(mount_protocols[n]);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:661:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		a->m.mountpoint_len = (unsigned char)strlen(ctx->buf);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:913:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += n + strlen(ESC_INSTALL_DATADIR);
data/libwebsockets-4.1.4/lib/roles/http/server/lejp-conf.c:944:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/lib/roles/http/server/rewrite.c:22:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	r->from_len = strlen(from);
data/libwebsockets-4.1.4/lib/roles/http/server/rewrite.c:24:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	r->to_len = strlen(to);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:364:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = (int)strlen(servername);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:390:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int m = (int)strlen(vhost->name);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:447:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t n = strlen(file), len, i;
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:459:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(pvo->name);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:471:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(mt->extension);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:724:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = (int)strlen(path);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:725:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (n > (int)strlen(pvo->name) &&
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:726:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    !strcmp(&path[n - strlen(pvo->name)], pvo->name)) {
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:841:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:1070:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pcolon, plain, ml - 1);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2273:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m = (int)strlen(tbuf);
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2613:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(content_type),
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:2654:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				14 + strlen(content_type) + 2 +
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3145:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (hits == 1 && s->pos == (int)strlen(s->vars[hit])) {
data/libwebsockets-4.1.4/lib/roles/http/server/server.c:3149:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				n = (int)strlen(pc);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt.c:53:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(client_id);
data/libwebsockets-4.1.4/lib/roles/mqtt/client/client-mqtt.c:382:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_inform_client_conn_fail(wsi, (void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:299:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mysub = lws_malloc(sizeof(*mysub) + strlen(topic) + 1, "sub");
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:305:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(mysub->topic, topic, strlen(topic) + 1);
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:1844:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				rem_len += (2 + (uint32_t)strlen(sub->topic[n].name) + (uint32_t)1);
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:1896:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lws_ser_wu16be(p, (uint16_t)strlen(sub->topic[n].name));
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:1903:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(sub->topic[n].name) + 1);
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:1905:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(sub->topic[n].name)))
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:2009:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				rem_len += (2 + (uint32_t)strlen(unsub->topic[n].name));
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:2051:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lws_ser_wu16be(p, (uint16_t)strlen(unsub->topic[n].name));
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:2058:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(unsub->topic[n].name) + 1);
data/libwebsockets-4.1.4/lib/roles/mqtt/mqtt.c:2060:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(unsub->topic[n].name)))
data/libwebsockets-4.1.4/lib/roles/mqtt/ops-mqtt.c:91:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/libwebsockets-4.1.4/lib/roles/mqtt/ops-mqtt.c:179:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		goto read;
data/libwebsockets-4.1.4/lib/roles/mqtt/primitives.c:199:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(buf);
data/libwebsockets-4.1.4/lib/roles/pipe/ops-pipe.c:50:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(wsi->desc.sockfd, s, sizeof(s));
data/libwebsockets-4.1.4/lib/roles/raw-skt/ops-raw-skt.c:98:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				lws_inform_client_conn_fail(wsi, (void *)cce, strlen(cce));
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:172:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p += strlen(key_b64);
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:365:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (int)strlen(p);
data/libwebsockets-4.1.4/lib/roles/ws/client-ws.c:555:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						  (int)strlen(ext_name))) {
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:27:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:1090:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/libwebsockets-4.1.4/lib/roles/ws/ops-ws.c:1228:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		goto read;
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:27:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
data/libwebsockets-4.1.4/lib/roles/ws/server-ws.c:205:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						    strlen(po->name))) {
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:760:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(protonames[n]) == ctx->npos &&
data/libwebsockets-4.1.4/lib/secure-streams/policy-json.c:884:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   strlen(overlay));
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-h1.c:347:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ts.len = strlen(ts.start);
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-h1.c:765:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_strexp_expand(&exp, pbasis, strlen(pbasis),
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-h2.c:162:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_strexp_expand(&exp, pbasis, strlen(pbasis),
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c:188:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mqpp.topic_len = strlen(mqpp.topic);
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c:287:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (lws_strexp_expand(&exp, sources[n], strlen(sources[n]),
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-mqtt.c:315:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (lws_strexp_expand(&exp, sources[n], strlen(sources[n]),
data/libwebsockets-4.1.4/lib/secure-streams/protocols/ss-ws.c:196:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_strexp_expand(&exp, pbasis, strlen(pbasis),
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:85:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		txc = strlen(md->name);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:241:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = strlen(h->ssi.streamtype) + 4;
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:440:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   strlen(ssi->streamtype) + 1);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-client.c:448:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(p, ssi->streamtype, strlen(ssi->streamtype) + 1);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams-serialize.c:137:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(rsp);
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:355:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      strlen(h->policy->endpoint),
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:552:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = sizeof(*h) + ssi->user_alloc + strlen(ssi->streamtype) + 1;
data/libwebsockets-4.1.4/lib/secure-streams/secure-streams.c:613:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(p, ssi->streamtype, strlen(ssi->streamtype) + 1);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:163:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stack[0].enl = (int)strlen(expname);
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:586:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ncname = (int)strlen(nmcname) + 1;
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns-parse.c:602:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = (int)strlen(nm) + 1;
data/libwebsockets-4.1.4/lib/system/async-dns/async-dns.c:535:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t nlen = strlen(name);
data/libwebsockets-4.1.4/lib/system/dhcpclient/dhcpclient.c:712:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(iface);
data/libwebsockets-4.1.4/lib/tls/lws-genec-common.c:58:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ts.len = strlen(allowed);
data/libwebsockets-4.1.4/lib/tls/lws-genec-common.c:71:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = (int)strlen(lws_ec_curves[n].name);
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:272:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = strlen(curve_name) + 1;
data/libwebsockets-4.1.4/lib/tls/mbedtls/lws-genec.c:346:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = strlen(curve_name) + 1;
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-server.c:697:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*privkey_len = strlen((const char *)buf);
data/libwebsockets-4.1.4/lib/tls/mbedtls/mbedtls-x509.c:366:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(passphrase);
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_methods.h:30:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read, send, pending, \
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/internal/ssl_methods.h:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                read, \
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/include/platform/ssl_port.h:34:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define ssl_strlen     strlen
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/library/ssl_lib.c:454:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = SSL_METHOD_CALL(read, ssl, buffer, len);
data/libwebsockets-4.1.4/lib/tls/mbedtls/wrapper/platform/ssl_pm.c:870:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*len = strlen(alp);
data/libwebsockets-4.1.4/lib/tls/openssl/lws-genec.c:369:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = (uint32_t)strlen(curve_name) + 1;
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:239:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(hostname));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:244:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       strlen(hostname));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:610:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		EVP_DigestUpdate(mdctx, cipher_list, strlen(cipher_list));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:615:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(info->client_tls_1_3_plus_cipher_list));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:624:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		EVP_DigestUpdate(mdctx, ca_filepath, strlen(ca_filepath));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:627:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		EVP_DigestUpdate(mdctx, cert_filepath, strlen(cert_filepath));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-client.c:631:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(private_key_filepath));
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-ssl.c:78:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, info->ssl_private_key_password, size);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-ssl.c:81:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (int)strlen(buf);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-ssl.c:97:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, p, size);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-ssl.c:100:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (int)strlen(buf);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-tls.c:61:32:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        return strncpy(buf, "SSL_ERROR_SYSCALL", len);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:49:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(p) == 13) {
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:116:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(buf->ns.name, p + 4, strlen(p + 4) + 1);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:117:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf->ns.len = (int)strlen(buf->ns.name);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:125:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf->ns.len = (int)strlen(buf->ns.name);
data/libwebsockets-4.1.4/lib/tls/openssl/openssl-x509.c:478:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = (int)strlen(pp);
data/libwebsockets-4.1.4/lib/tls/tls.c:362:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:51:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(filepath, optarg, sizeof(filepath) - 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:109:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(argv[optind]), 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-fts/main.c:125:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int n = read(fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-gencrypto/lws-genec.c:50:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)jwk_ec1)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:79:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(ex_a1_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:85:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(ex_a1_compact, (int)strlen(ex_a1_compact),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:101:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (jwe.jws.map.len[LJWE_CTXT] < strlen(ex_a1_ptext) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:103:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			        (uint32_t)strlen(ex_a1_ptext))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:105:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lwsl_hexdump_notice(ex_a1_ptext, strlen(ex_a1_ptext));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:120:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(ex_a1_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:148:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ex_a1_ptext, strlen(ex_a1_ptext), 0)) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:188:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map,
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:195:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(ex_a1_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:295:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a2_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:302:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   (int)strlen((char *)ex_a2_compact),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:530:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	jwe.jws.map.len[LJWE_JOSE] = (uint32_t)strlen(rsa256a128_jose);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:660:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	jwe.jws.map.len[LJWE_JOSE] = (uint32_t)strlen(rsa256a192_jose);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:792:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	jwe.jws.map.len[LJWE_JOSE] = (int)strlen(rsa256a256_jose);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:795:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       (int)strlen(rsa256a256_jose),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1055:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a2_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1062:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   (int)strlen((char *)jwe_compact_rsa_cbc_openssl),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1146:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a2_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1153:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   (int)strlen((char *)jwe_compact_rsa_cbc_mbedtls),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1237:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)ex_a3_key)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1244:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   (int)strlen((char *)ex_a3_compact),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1653:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwe_parse_jose(&jwe.jose, ex_jwa_c_jose, (int)strlen(ex_jwa_c_jose),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1798:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				jose_hdr, strlen(jose_hdr), 0))
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1801:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwe_parse_jose(&jwe.jose, jose_hdr, (int)strlen(jose_hdr),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1811:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)peer_pubkey)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1824:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(ecdhes_t1_plaintext),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1826:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(ecdhes_t1_plaintext)))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1871:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)peer_privkey)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1877:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map,
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1973:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwk_import(&jwe.jwk, NULL, NULL, key, strlen(key)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1979:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(ciphertext, (int)strlen(ciphertext),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1994:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (jwe.jws.map.len[LJWE_CTXT] < strlen(akw_ptext) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1996:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			        (int)strlen(akw_ptext))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:1998:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lwsl_hexdump_notice(akw_ptext, strlen(akw_ptext));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2028:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwk_import(&jwe.jwk, NULL, NULL, key, strlen(key)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2056:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				akw_ptext, strlen(akw_ptext),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2058:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							  strlen(akw_ptext)))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2145:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwe_parse_jose(&jwe.jose, complete, (int)strlen(complete),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2203:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    (int)strlen((char *)lws_jwe_ex_a2_jwk_json));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2205:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)lws_jwe_ex_a2_jwk_json));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2207:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)lws_jwe_ex_a2_jwk_json));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2209:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_2048));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2211:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_2048));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2213:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_2048));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2215:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2217:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2219:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2221:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096_no_optional));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2223:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096_no_optional));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwe.c:2225:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(int)strlen((char *)rsa_key_4096_no_optional));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c:287:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a1_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c:298:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a2_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c:309:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_a3_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c:319:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_b_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jwk.c:330:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen((char *)lws_jwe_ex_c1_jwk_json)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:49:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = lws_jws_compact_decode(none_cser, (int)strlen(none_cser), &map, NULL,
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:134:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_parse_jose(&jose, test1, (int)strlen(test1), temp,
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:148:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwk_import(&jwk, NULL, NULL, key_jwk, strlen(key_jwk)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:160:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = lws_jws_encode_section(test1, strlen(test1), 1, &p, end);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:169:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = lws_jws_encode_section(test2, strlen(test2), 0, &p, end);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:298:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   rfc7515_rsa_key, strlen(rfc7515_rsa_key))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:311:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(rfc7515_rsa_a1), &map,
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:317:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_b64_compact_map(rfc7515_rsa_a1, (int)strlen(rfc7515_rsa_a1),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:326:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = (int)strlen(rfc7515_rsa_a1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:424:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(es256_cser, (int)strlen(es256_cser),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:432:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (jws.map.len[LJWS_JOSE] != strlen(es256_jose) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:440:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (jws.map.len[LJWS_PYLD] != strlen(es256_payload) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:465:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwk_import(&jwk, NULL, NULL, es256_jwk, strlen(es256_jwk))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:484:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = (int)strlen(es256_cser);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:585:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jws_compact_decode(es512_cser, (int)strlen(es512_cser),
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:593:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (jws.map.len[LJWS_JOSE] != strlen(es512_jose) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:601:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (jws.map.len[LJWS_PYLD] != strlen(es512_payload) ||
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:626:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lws_jwk_import(&jwk, NULL, NULL, es512_jwk, strlen(es512_jwk))) {
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-jose/jws.c:645:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = (int)strlen(es512_cser);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lejp/main.c:165:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lwsl_hexdump_info(json_tests[m], strlen(json_tests[m]));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lejp/main.c:172:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(json_tests[m]));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_smd/main.c:75:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(3000);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:547:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 (int)strlen(json_tests[m]));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:691:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m = lejp_parse(&ctx, (uint8_t *)t2, (int)strlen(t2));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/main.c:783:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m = lejp_parse(&ctx, (uint8_t *)jig_conf, (int)strlen(jig_conf));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_struct-json/test2.c:191:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = lejp_parse(&ctx, (uint8_t *)test2_json, (int)strlen(test2_json));
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:290:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		total = strlen(replace);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:370:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		in_len = strlen(p);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:426:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_nstrstr(t1, strlen(t1), "abc", 3);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:431:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_nstrstr(t1, strlen(t1), "def", 3);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:436:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_nstrstr(t1, strlen(t1), "456", 3);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:441:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_nstrstr(t1, strlen(t1), "1", 1);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:446:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_nstrstr(t1, strlen(t1), "abc1234567", 10);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:462:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_json_simple_find(t1, strlen(t1), "\"myname1\":", &alen);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:469:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_json_simple_find(t1, strlen(t1), "\"myname2\":", &alen);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:475:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_json_simple_find(t1, strlen(t1), "\"myname3\":", &alen);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:481:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mcp = lws_json_simple_find(t1, strlen(t1), "\"nope\":", &alen);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:496:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ts.len = strlen(ts.start);
data/libwebsockets-4.1.4/minimal-examples/api-tests/api-test-lws_tokenize/main.c:545:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ts.len = strlen(p);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:137:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  &temp_len, strlen(p) +
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:138:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  strlen(sp + 1) + 32, 0)) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:151:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(0, in, temp_len);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwe/main.c:226:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(compact)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:126:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_jwk_strdup_meta(&jwk, JWK_META_KID, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:129:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_jwk_strdup_meta(&jwk, JWK_META_USE, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:132:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:135:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_jwk_strdup_meta(&jwk, JWK_META_KEY_OPS, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:163:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(key)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jwk/main.c:188:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(key)) < 0) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c:65:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				      &temp_len, strlen(p) + 10, 0)) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c:77:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(0, in, temp_len);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-jws/main.c:159:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(compact))  < 0) {
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:22:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, pembuf, pembuf_len - 1);
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:129:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:146:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/crypto/minimal-crypto-x509/main.c:175:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, (int)strlen(p));
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:240:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uri_copy, uri, sizeof(uri_copy) - 1);
data/libwebsockets-4.1.4/minimal-examples/dbus-server/minimal-dbus-ws-proxy/protocol_lws_minimal_dbus_ws_proxy.c:345:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	amsg.len = strlen(payload);
data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/rgb565/rgb565.c:12:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = getchar();
data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/rgb565/rgb565.c:13:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		g = getchar();
data/libwebsockets-4.1.4/minimal-examples/embedded/esp32/esp-wrover-kit/rgb565/rgb565.c:14:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		b = getchar();
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-attach/minimal-http-client-attach.c:248:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000);
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-h2-rxflow/minimal-http-client.c:283:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		info.client_ssl_ca_mem_len = read(n, memcert, sizeof(memcert));
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client-multi/minimal-http-client-multi.c:407:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(urlpath, "/");
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:76:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(unsigned char *)b, (int)strlen(b), p, end))
data/libwebsockets-4.1.4/minimal-examples/http-client/minimal-http-client/minimal-http-client.c:306:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		info.client_ssl_ca_mem_len = read(n, memcert, sizeof(memcert));
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c:55:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  (int)strlen((const char *)buf),buf);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse-ring/minimal-http-server-sse-ring.c:67:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-sse-ring/minimal-http-server-sse-ring.c:139:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000 + (time(NULL) & 0xffff));
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-mem/minimal-http-server-tls-mem.c:432:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	info.server_ssl_cert_mem_len		= (unsigned int)strlen(cert_pem);
data/libwebsockets-4.1.4/minimal-examples/http-server/minimal-http-server-tls-mem/minimal-http-server-tls-mem.c:434:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	info.server_ssl_private_key_mem_len	= (unsigned int)strlen(key_pem);
data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client-multi/minimal-mqtt-client-multi.c:272:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pss->pub_param.topic_len = (uint16_t)strlen(pss->pub_param.topic);
data/libwebsockets-4.1.4/minimal-examples/mqtt-client/minimal-mqtt-client/minimal-mqtt-client.c:213:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pub_param.topic_len = (uint16_t)strlen(pub_param.topic);
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-file/minimal-raw-file.c:72:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(vhd->filefd, buf, sizeof(buf));
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-netcat/minimal-raw-netcat.c:68:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		waiting = read(0, buf, sizeof(buf));
data/libwebsockets-4.1.4/minimal-examples/raw/minimal-raw-serial/minimal-raw-file.c:145:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(vhd->filefd, buf, sizeof(buf));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/alexa.c:507:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tot = strlen(metadata);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-alexa/main.c:306:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:199:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tot = strlen(metadata);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/avs.c:392:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, wav,
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/main-client.c:55:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-avs/main.c:268:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-metadata/minimal-secure-streams.c:229:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_ss_set_metadata(m->ss, "servername", server_name_or_url, strlen(server_name_or_url));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-policy2c/minimal-secure-streams.c:54:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert (strlen(in) < templen);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-policy2c/minimal-secure-streams.c:109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int m, n = read(0, buf, sizeof(buf));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:398:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m->len = strlen(postbody);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:399:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lws_ss_request_tx_len(m->ss, (unsigned long)strlen(postbody));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-post/minimal-secure-streams-post.c:451:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-proxy/main.c:198:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/ss-server.c:99:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*len = strlen(send);
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/ss-server.c:203:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(multipart ? strlen(multipart_html) :
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-server/ss-server.c:204:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							 strlen(html)));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams-staticpolicy/minimal-secure-streams.c:143:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/secure-streams/minimal-secure-streams/minimal-secure-streams.c:360:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(canned_root_token_payload));
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-binance/main.c:360:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	info.client_ssl_ca_mem_len = strlen(ca_pem_digicert_global_root);
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-tx/minimal-ws-client.c:62:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/ws-client/minimal-ws-client-tx/minimal-ws-client.c:124:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c:49:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c:125:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threadpool/protocol_lws_minimal_threadpool.c:293:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = (int)strlen(priv->result + LWS_PRE);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/protocol_lws_minimal.c:59:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-foreign-smp/protocol_lws_minimal.c:133:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/protocol_lws_minimal.c:55:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads-smp/protocol_lws_minimal.c:130:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads/protocol_lws_minimal.c:55:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned long l) { Sleep(l / 1000); }
data/libwebsockets-4.1.4/minimal-examples/ws-server/minimal-ws-server-threads/protocol_lws_minimal.c:130:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:160:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(ac->key_auth);
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:802:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			m += strlen(pvo->value) + 1;
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:812:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = strlen(pvo->value) + 1;
data/libwebsockets-4.1.4/plugins/acme-client/protocol_lws_acme_client.c:1366:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(ac->http01_mountpoint);
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:140:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	initial = strlen(vhd->upload_dir) + 1;
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:173:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (de->d_name[strlen(de->d_name) - 1] == '~')
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:205:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m = strlen(filepath + initial) + 1;
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:331:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		filename2[strlen(filename2) - 1] = '\0';
data/libwebsockets-4.1.4/plugins/deaddrop/protocol_lws_deaddrop.c:465:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((int)strlen(pss->user) != n ||
data/libwebsockets-4.1.4/plugins/protocol_lws_raw_test.c:181:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(vhd->fifo, buf, sizeof(buf) - 1);
data/libwebsockets-4.1.4/plugins/protocol_lws_server_status.c:83:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, contents, sizeof(contents) - 1);
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:107:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	priv->len = (int)strlen(priv->ptr);
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:214:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(vhd->privileged_fd, buf, (int)len);
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:248:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = (int)strlen(type), alen = 2048, ret = 2, len;
data/libwebsockets-4.1.4/plugins/protocol_lws_sshd_demo.c:253:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = strlen(authorized_key) + 1;
data/libwebsockets-4.1.4/plugins/raw-proxy/protocol_lws_raw_proxy.c:199:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ts.len = strlen(cp);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:416:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (_genhash_update_len(&ctx, pss->V_C, strlen(pss->V_C)))
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:419:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(pss->vhd->ops->server_string)))
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:432:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lws_p32((uint8_t *)&be, 8 + (int)strlen(keyt) + LWS_SIZE_EC25519);
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:436:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (_genhash_update_len(&ctx, keyt, strlen(keyt)))
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:487:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lws_sized_blob(&p, keyt, (int)strlen(keyt));
data/libwebsockets-4.1.4/plugins/ssh-base/kex-25519.c:499:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lws_sized_blob(&p, keyt, (int)strlen(keyt));
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:68:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint32_t n = (uint32_t)strlen(s);
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1189:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    4 + (int)strlen(pss->ua->username) +
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1190:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    4 + (int)strlen(pss->ua->service) +
data/libwebsockets-4.1.4/plugins/ssh-base/sshd.c:1193:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    4 + (int)strlen(pss->ua->alg) +
data/libwebsockets-4.1.4/test-apps/test-client.c:262:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      strlen(&buf[LWS_PRE]), LWS_WRITE_HTTP);
data/libwebsockets-4.1.4/test-apps/test-client.c:427:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(50);
data/libwebsockets-4.1.4/test-apps/test-lejp.c:105:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, buf, sizeof(buf));
data/libwebsockets-4.1.4/test-apps/test-server.c:554:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(resource_path) > sizeof(cert_path) - 32) {
data/libwebsockets-4.1.4/test-apps/test-server.c:561:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(resource_path) > sizeof(key_path) - 32) {
data/libwebsockets-4.1.4/test-apps/test-sshd.c:244:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, len);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:287:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(type), alen = 2048, ret = 2, len;
data/libwebsockets-4.1.4/test-apps/test-sshd.c:292:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = strlen(authorized_key) + 1;
data/libwebsockets-4.1.4/test-apps/test-sshd.c:376:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pvo->name = malloc(strlen(name) + 1);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:382:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pvo->value = malloc(strlen(value) + 1);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:498:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(m, buf, n);
data/libwebsockets-4.1.4/test-apps/test-sshd.c:528:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(n, rp, bytes);
data/libwebsockets-4.1.4/win32port/dirent/dirent-win32.h:388:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = wcslen (dirname);
data/libwebsockets-4.1.4/win32port/win32helpers/getopt_long.c:192:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			current_argv_len = (int)strlen(current_argv);
data/libwebsockets-4.1.4/win32port/win32helpers/getopt_long.c:198:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(long_options[i].name) == (unsigned)current_argv_len) { 
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:151:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    state->path = malloc(strlen(path) + 1);
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:509:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((state->msg = malloc(strlen(state->path) + strlen(msg) + 3)) == NULL) {
data/libwebsockets-4.1.4/win32port/zlib/gzlib.c:509:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((state->msg = malloc(strlen(state->path) + strlen(msg) + 3)) == NULL) {
data/libwebsockets-4.1.4/win32port/zlib/gzread.c:31:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(state->fd, buf + *have, len - *have);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:272:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = (unsigned)strlen(str);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:331:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(state->in);
data/libwebsockets-4.1.4/win32port/zlib/gzwrite.c:405:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(state->in);

ANALYSIS SUMMARY:

Hits = 1601
Lines analyzed = 226326 in approximately 6.81 seconds (33215 lines/second)
Physical Source Lines of Code (SLOC) = 152146
Hits@level = [0] 244 [1] 471 [2] 1016 [3]  26 [4]  78 [5]  10
Hits@level+ = [0+] 1845 [1+] 1601 [2+] 1130 [3+] 114 [4+]  88 [5+]  10
Hits/KSLOC@level+ = [0+] 12.1265 [1+] 10.5228 [2+] 7.42708 [3+] 0.74928 [4+] 0.578392 [5+] 0.0657263
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.