1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
Christopher Pascoe 63f1e40106 Fix RAM corruption caused by our hook of register_chipv6_phy(init_data*).
"init_data", when non-NULL, is on the heap, and the register_chipv6_phy call
sometimes modifies data in (at least) the offset range [128:249], suggesting
that it is a buffer larger than 128 bytes in size (the size of our
"phy_init_data" buffer).  When we use our static buffer (prior to this
change), the call could would overwrite the .rodata section and lead to
undefined behaviour.

To address this, just patch the heap-allocated buffer with our data.

Move phy_init_data to flash as it's now readonly and never modified.
2015-12-21 19:18:29 -08:00
..
2015-10-18 10:52:17 +02:00
2015-12-06 20:39:54 +03:00
2015-12-09 13:51:39 +01:00
2015-12-09 13:51:39 +01:00
2015-10-29 10:51:51 +02:00
2015-05-25 09:47:13 +02:00
2015-11-22 22:39:31 +01:00
2015-11-13 13:23:16 +03:00
2015-11-13 13:23:16 +03:00
2015-11-13 13:23:16 +03:00
2015-10-29 10:51:51 +02:00
2015-08-03 19:58:42 -07:00
2015-08-21 11:07:26 -04:00
2015-11-08 23:44:25 +03:00
2015-07-21 00:37:16 +08:00
2015-04-03 13:41:29 +02:00
2015-06-19 10:53:35 +02:00
2015-11-21 20:18:38 +03:00
2015-05-03 17:51:06 +03:00
2015-12-20 12:45:36 +01:00
2015-12-20 12:45:36 +01:00
2014-12-01 00:34:28 +03:00
2015-06-19 10:53:35 +02:00
2015-12-10 17:37:09 +01:00
2015-12-10 17:37:09 +01:00