commit | 5c2cdfa5f719607552824f5cc4041259b8bb8f0a | [log] [tgz] |
---|---|---|
author | jb.qi <jb.qi@mobiletek.cn> | Tue Sep 03 23:05:53 2024 -0700 |
committer | jb.qi <jb.qi@mobiletek.cn> | Tue Sep 03 23:05:53 2024 -0700 |
tree | c452381c2c235ca1e192500225a44d62832da11b | |
parent | 3fabbcd563ec2f0482793f6ec9fe6e9ff28399be [diff] |
[Bugfix][T106][bug-view-90][AUTOSUSPEND]Fixed the issue where lock names with a length greater than 64 could still be successfully created Only Configure: NO Affected branch: master Affected module: autosuspend Is it affected on both ZXIC and MTK:only ZXIC Self-test: Yes Doc Update:No Change-Id: I5579ea5c2ea5aff21539abee17284a9933290df3
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp index bb659ef..6fbedd5 100755 --- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp +++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -362,7 +362,7 @@ int qser_wakelock_create(const char *name, size_t len) { int ret; - if(name == NULL) + if((name == NULL) || (strlen(name) > 64)) { return E_INPUT_ERROR; }