+13
−14
Loading
Gitlab 现已全面支持 git over ssh 与 git over https。通过 HTTPS 访问请配置带有 read_repository / write_repository 权限的 Personal access token。通过 SSH 端口访问请使用 22 端口或 13389 端口。如果使用CAS注册了账户但不知道密码,可以自行至设置中更改;如有其他问题,请发邮件至 service@cra.moe 寻求协助。
When using swap-scratch, the last sector of a slot able to contain
firmware data might also contain part of the trailer (or the whole
trailer, if the latter is small enough). When the trailer is large, a
single sector it might not fit in a single sector and that last firmware
sector might therefore not be the last sector of the slot.
When that happens, and unless the trailer starts exactly at the
beginning of a sector, an underflow could occur when computing the
number of bytes that must be copied from the last firmware sector.
Indeed, when the trailer is large, its size can be larger than that
sector and, depending on the size of the sratch area, 'copy_sz' can at
worst equal to the size of this sector.
If this underflow occurs, 'copy_sz' would end up containing a very large
value, that would probably cause the upgrade to fail and could lead to a
corruption of a large part of the flash memory if no bound check is
performed in the flash driver.
Signed-off-by:
Thomas Altenbach <thomas.altenbach@legrand.com>
CRA Git | Maintained and supported by SUSTech CRA and CCSE