Add linked-against-eclipse-paho-mqtt-c.yml and linked-against-qmqtt.yml (#1066)

* Add linked-against-eclipse-paho-mqtt-c.yml and linked-against-qmqtt.yml

* Update examples - swapping for much smaller files
This commit is contained in:
JJ 2025-08-14 23:11:33 +08:00 committed by GitHub
parent 760c214299
commit c783febdc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,23 @@
rule:
meta:
name: linked against Eclipse Paho MQTT C
namespace: linking/static/eclipse-paho-mqtt-c
authors:
- jakubjozwiak@google.com
scopes:
static: file
dynamic: file
references:
- https://github.com/eclipse-paho/paho.mqtt.c
examples:
- 80f166e9c0427f055c88c9ee62016a6ba6a938023ff8778f5a0b5f8d7fe7570d
features:
- or:
- string: "mqttasync_mutex error %d"
- string: "mqttclient_mutex error %d"
- string: "mqttcommand_mutex error %d"
- string: "subscribe_mutex error %d"
- string: "MQTT version is 0 in MQTTAsync_connecting"
- string: "Bad MQTT packet, type %d"
- string: "memory allocation error in MQTTStrdup"
- string: "Error from MQTTProperties add %d"

View file

@ -0,0 +1,27 @@
rule:
meta:
name: linked against QMQTT
namespace: linking/static/qmqtt
authors:
- jakubjozwiak@google.com
scopes:
static: file
dynamic: file
references:
- https://github.com/emqx/qmqtt
examples:
- 96abcbcb4aec439ac1619b02a44b6f482241dbb7486a15138e3aada5fa01d382
features:
- or:
- string: "qmqtt: Binary data size bigger than %u bytes, truncate it!"
- string: "qmqtt: String size bigger than %u bytes, truncate it!"
- string: "qmqtt: Control packet bigger than 256 MB, dropped!"
- string: "qmqtt: Control packet write error!"
- string: "QMQTT::Client"
- string: "QMQTT::ClientPrivate"
- string: "QMQTT::Network"
- string: "QMQTT::Socket"
- string: "QMQTT::SslSocket"
- string: "QMQTT::Timer"
- string: "QMQTT::WebSocket"
- string: "QMQTT::WebSocketIODevice"