Fixed the type-check failure from test-Type Check
Build & Push / Build & Push Docker Image (push) Successful in 4m18s
Test / Type Check (all packages) (push) Successful in 56s
Test / API Unit Tests (push) Failing after 48s
Test / Homepage Unit Tests (push) Successful in 42s
Test / Carplace Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 42s
Test / Dashboard Unit Tests (push) Successful in 40s
Test / API Integration Tests (push) Successful in 1m15s
Build & Push / Build & Push Docker Image (push) Successful in 4m18s
Test / Type Check (all packages) (push) Successful in 56s
Test / API Unit Tests (push) Failing after 48s
Test / Homepage Unit Tests (push) Successful in 42s
Test / Carplace Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 42s
Test / Dashboard Unit Tests (push) Successful in 40s
Test / API Integration Tests (push) Successful in 1m15s
This commit is contained in:
@@ -67,7 +67,7 @@ function readImageDimensions(file: Express.Multer.File): { width: number; height
|
|||||||
let offset = 2
|
let offset = 2
|
||||||
while (offset + 9 < buffer.length) {
|
while (offset + 9 < buffer.length) {
|
||||||
if (buffer[offset] !== 0xff) return null
|
if (buffer[offset] !== 0xff) return null
|
||||||
const marker = buffer[offset + 1]
|
const marker = buffer.readUInt8(offset + 1)
|
||||||
const length = buffer.readUInt16BE(offset + 2)
|
const length = buffer.readUInt16BE(offset + 2)
|
||||||
if (length < 2) return null
|
if (length < 2) return null
|
||||||
if ((marker >= 0xc0 && marker <= 0xc3) || (marker >= 0xc5 && marker <= 0xc7) || (marker >= 0xc9 && marker <= 0xcb) || (marker >= 0xcd && marker <= 0xcf)) {
|
if ((marker >= 0xc0 && marker <= 0xc3) || (marker >= 0xc5 && marker <= 0xc7) || (marker >= 0xc9 && marker <= 0xcb) || (marker >= 0xcd && marker <= 0xcf)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user