phoenix-rtos / phoenix-rtos-kernel

Phoenix-RTOS microkernel repository
http://phoenix-rtos.com
BSD 3-Clause "New" or "Revised" License
112 stars 33 forks source link

proc_portLookup: fix len check #583

Closed lukileczo closed 3 weeks ago

lukileczo commented 3 weeks ago

If server returned off by 1 value, it wasn't detected and resulted in memcpy with size -1.

JIRA: RTOS-897

Description

Motivation and Context

Types of changes

How Has This Been Tested?

Checklist:

Special treatment

github-actions[bot] commented 3 weeks ago

Unit Test Results

7 700 tests  ±0   6 985 :white_check_mark: ±0   37m 14s :stopwatch: - 1m 51s   436 suites ±0     715 :zzz: ±0      1 files   ±0       0 :x: ±0 

Results for commit c158d1ab. ± Comparison against base commit fa2cb465.