Skip to content

Fix mgmt command write size check - #7

Open
akanisetti wants to merge 6 commits into
edge-aosp-bsp:celadon/a15/stablefrom
akanisetti:coverity-fix-wave-1
Open

Fix mgmt command write size check#7
akanisetti wants to merge 6 commits into
edge-aosp-bsp:celadon/a15/stablefrom
akanisetti:coverity-fix-wave-1

Conversation

@akanisetti

Copy link
Copy Markdown

Replace hardcoded 6 with sizeof(cmd) in mgmt command write. Compare write result with explicit ssize_t casts.
Prevents wrong-size argument warnings with no behavior change.

Tracked-On: NIACP3-1397

@akanisetti
akanisetti requested a review from a team June 16, 2026 17:15
somkarx and others added 6 commits June 17, 2026 08:46
Using AIDL Implementation for Lights.
The passthrought solution is not used anymore. Delete the code.

Tracked-On: NIACP3-1149
Signed-off-by: somkarx <suhasx.omkar@intel.com>
Implement custom AIDL Lights HAL to support display brightness
control by decoding ARGB values, converting to luminance, and
scaling to device-specific backlight range using sysfs.

Includes backlight device detection and brightness remapping to
ensure minimum visible levels, enabling proper UI brightness control.

Tracked-On: NIACP3-1149
Signed-off-by: somkarx <suhasx.omkar@intel.com>
Add new location HAL module implementing vendor AIDL interface for static
location coordinate provisioning. Includes HAL daemon with configuration
file parsing, binder service registration, and location coordinate access.

Tracked-On: NIACP3-1182
Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
- Add AIDL interface declaration to init.rc for ServiceManager discovery
- Return error status from getLatitude/getLongitude on config read
  failures
- Include line numbers in config parse error warnings
- Fix unused lineNum variable warning

Tracked-On: NIACP3-1182
Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
Add north pole as default location value.
Read location will return North pole if conf file
is not found.

Tracked-On: NIACP3-1353
Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
Replace hardcoded 6 with sizeof(cmd) in mgmt command write.
Compare write result with explicit ssize_t casts.
Prevents wrong-size argument warnings with no behavior change.

Tracked-On: NIACP3-1397
Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
@akanisetti
akanisetti force-pushed the coverity-fix-wave-1 branch from bca1bab to f0d0292 Compare June 17, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants