RTEMS | powerpc/beatnik: Convert MOTLoad GEV variables into env variables (!1276)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Jun 17 01:04:50 UTC 2026




Gedare Bloom started a new discussion on bsps/powerpc/shared/start/motload-gev-net-env.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152549

 > +    } else {
 > +      printf("error: GEV epics-script: no server delimiter found\n");
 > +    }
 > +  }
 > +}
 > +
 > +void motload_gev_set_net_envs(uintptr_t nvram_base, const size_t unit,
 > +                              const char* label) {
 > +  /*
 > +   * The boot script is parsed for `tftpGet` settings -s -g and -m
 > +   * and the values are used if there are no explictic names set.
 > +   */
 > +  char var[256];
 > +  struct gev_net_var vars;
 > +  int r;
 > +  if (unit < 1) {

should validate unit <= 256 (sizeof(var))

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152549
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260617/8040796b/attachment.htm>


More information about the bugs mailing list