| 192 | } |
| 193 | |
| 194 | static struct fpsba *find_fpsba(char *image, int size) |
| 195 | { |
| 196 | struct fdbar *fdb = find_fd(image, size); |
| 197 | if (!fdb) |
| 198 | return NULL; |
| 199 | struct fpsba *fpsba = |
| 200 | (struct fpsba *) (image + (((fdb->flmap1 >> 16) & 0xff) << 4)); |
| 201 | |
| 202 | int SSL = ((fdb->flmap1 >> 24) & 0xff) * sizeof(uint32_t); |
| 203 | if ((((char *)fpsba) + SSL) >= (image + size)) |
| 204 | return NULL; |
| 205 | return fpsba; |
| 206 | } |
| 207 | |
| 208 | static struct fmsba *find_fmsba(char *image, int size) |
| 209 | { |
no test coverage detected