1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

2061 Commits

Author SHA1 Message Date
Ivan Grokhotkov
fbe58b7b14 WiFiClientSecure: don't panic if memory allocation fails
If it fails due to a malloc somewhere in bigint.c, we will still crash (although with a less obvious crash message). If it fails in increase_bm_data_size, axTLS will handle this and report that connection has been aborted. This error will be passed on to the user, so that an application can recover and attempt to reconnect.
2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
fcf9c0d7ce Verify domain name in WiFiClientSecure::verify 2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
e206093b60 Update libaxtls.a to 324c2fd
Changelog:
324c2fdade3f39b4c7fb7fbe707f4a313023ecd3 Terminate connection if increase_bm_data_size fails
96fbb39f21d3af7ca3e4dee78f8c45c4e2e652b5 Update README.md
c18bb56e6100177cfa0bef3c90708efb9d7a071d Add travis CI
9eaeca3a030692bdf949b89d80705061b516f70b Postpone freeing of X509 context to the first data exchange after handshake
28869ea94b3b1cabfbe8679d962adc12ba0b28db Use free followed by malloc instead of realloc when increasing raw buffer
43a90bcf3559ed145db9286f28bdcd8b07832b51 Merge pull request #8 from slaff/feature/lwipr-compat
66e1a5f423c0ee25d4318968ea14384887d287aa Merge pull request #7 from slaff/feature/sni
1154d0a985cc442f39f5e6b3678a7d4ffca5db31 Changed the code to reserve bytes for hostname only if needed.
63da8991c2878f2a7cd526667f9e23adc9dca1c9 Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) support.
7c38865f66cfdd0884183619b0d1e89b8717cb01 Restructured the lwip raw comat code. Added replacements for the time functions on ESP8266.
885ff3e8f0455d48acbc5e67557602e9d548fd81 Merge pull request #6 from slaff/feature/lwip-raw
d78e7a07998f456d452a760d478d1518b009fd4a Initial version of axTLS integration with lwip raw tcp mode (http://lwip.wikia.com/wiki/Raw/TCP).
2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
d891704c1e Reduce stack usage by Print::printf
Print::printf would allocate 1460 bytes on the stack, which in some cases would overflow the stack. Additionally it didn't handle (rare) cases when vsnprintf needed a buffer longer than 1460 bytes. This change makes default stack-allocated buffer 64 bytes long, and checks the result returned by vsnprintf. If a buffer longer than 64 bytes is needed, it is allocated on the heap.
2016-02-26 18:41:27 +03:00
raheelh
fdf8599aaa Fix a crash in String::changeBuffer()
Calling String::reserve() causes a crash if String object was in invalidated state. Per the comment on the method's declaration in ESP_SSD1306.h, This method was supposed to recover invalidated strings. This change fixes the edge case bug in String::changeBuffer() which is the root cause of the crash exposed from String::reserve().

Following test code was used to reproduce the problem and also to validate the fix:

String result;
while(true){
  char c = 'A';
  result += c; // the loop will cause malloc() to fail at some point.
  if (result.c_str()==0)
  {
    Serial.println("String INVALIDATED!!!!!");
    result.reserve(0);   // before fix, this would crash.
    Serial.println("Trying to empty....");
    result=""; 
    Serial.println("Emptied!!!!");
    break;
  } 
}
2016-02-22 22:57:21 -06:00
Markus
f28c5be479 Merge pull request #1666 from Links2004/master
not keep freed pointer of uart handler
2016-02-22 19:04:25 +01:00
Markus Sattler
28e6f33142 not keep freed pointer of uart handler 2016-02-22 18:24:10 +01:00
Markus
c7ff2b1fee Merge pull request #1665 from Links2004/master
add ISSUE_TEMPLATE.md
2016-02-22 18:08:54 +01:00
Markus Sattler
c33535c3db Merge remote-tracking branch 'remotes/esp8266/master' 2016-02-22 17:24:22 +01:00
Markus Sattler
2500840897 add ISSUE_TEMPLATE.md 2016-02-22 17:24:06 +01:00
Ivan Grokhotkov
212095b231 Merge pull request #1650 from Links2004/master
speed up WiFi.hostByName when the hostname is actually a IP.
2016-02-19 14:19:05 +03:00
Ivan Grokhotkov
103b5811be Fix error when umm_malloc.h is included from sketch (#1652) 2016-02-19 14:17:09 +03:00
Markus Sattler
3e9dede14e speed up WiFi.hostByName when the hostname is actually a IP. 2016-02-18 23:07:51 +01:00
Ivan Grokhotkov
55e5bdfc6c Move 64-bit integer division and modulo functions into flash
Saves another 1819 bytes of IRAM (may help with #1582)
2016-02-18 11:15:08 +03:00
Ivan Grokhotkov
64ade03f6a Merge pull request #1644 from Links2004/master
update core_esp8266_features.h
2016-02-18 10:48:03 +03:00
Ivan Grokhotkov
839394462c Merge pull request #1636 from cmmakerclub/master
Update ESPresso description and board detail.
2016-02-18 10:47:13 +03:00
Markus Sattler
127f05da9f Merge remote-tracking branch 'remotes/esp8266/master' 2016-02-17 23:47:14 +01:00
Markus Sattler
652f88eb5c update core_esp8266_features.h 2016-02-17 23:46:20 +01:00
Ivan Grokhotkov
707c87fdb6 Move umm_info into cache 2016-02-17 11:42:52 +03:00
Nat Weerawan
db69643592 Update ESPresso description and board detail. 2016-02-16 11:19:59 +07:00
Joost van Dijk
2331377a9d add missing prototypes for libwpa2 2016-02-15 14:23:51 +01:00
Joost van Dijk
452a355360 add missing prototypes for libwpa2 2016-02-15 14:23:23 +01:00
Ivan Grokhotkov
fec1a64bfd Merge pull request #1573 from esp8266/travis-hourly-arduino
Use hourly Arduino builds on Travis
2016-02-15 15:23:30 +03:00
Ivan Grokhotkov
88a20ae41a Make compatible with arduino-builder 2016-02-15 13:56:14 +03:00
Ivan Grokhotkov
030faff748 Use hourly Arduino builds on Travis 2016-02-15 13:56:14 +03:00
Ivan Grokhotkov
30b2a99b3f Remove mem_manager.o from libmain.a (#1630) 2016-02-15 00:24:19 +03:00
Ivan Grokhotkov
4c75793508 Fix undefined reference to putchar 2016-02-14 22:16:46 +03:00
Ivan Grokhotkov
1fc8918d76 Remove printf redefinition from umm_malloc_cfg (#1629) 2016-02-13 13:29:58 +03:00
Ivan Grokhotkov
0659b80260 Merge pull request #1586 from esp8266/cxa_guard
Static initialization guards implementation
2016-02-13 13:26:12 +03:00
Ivan Grokhotkov
93c446e782 Merge pull request #1581 from bjpirt/tone
Implementation of Tone library using timer1
2016-02-13 13:25:52 +03:00
Ivan Grokhotkov
4f5f003b49 Merge pull request #1625 from hallard/master
Added bit mask and constant for SerialConfig parameter
2016-02-13 13:23:46 +03:00
Ivan Grokhotkov
153138e508 Merge pull request #1627 from Toshik/patch-2
TickerScheduler library link
2016-02-13 13:23:31 +03:00
Ivan Grokhotkov
1e0a766837 Merge pull request #1626 from plerup/master
Reference to the esp8266/Arduino makefile added
2016-02-13 13:23:16 +03:00
Ivan Grokhotkov
fe49fc6b84 Merge pull request #1621 from cmmakerclub/master
- Update board (ESPresso Lite) description.
2016-02-13 13:22:57 +03:00
Toshik
f563acb703 TickerScheduler library link
TickerScheduler library - to simplificate Ticker usage and avoid WDT reset
2016-02-12 14:06:00 +03:00
Peter Lerup
9ef2843f8d Reference to the esp8266/Arduino makefile added 2016-02-11 22:04:57 +01:00
Charles
e3bf9bb1e8 Added bit mask and constant for SerialConfig parameter
Permit use bit config avoiding test/compare all "hard-coded" values.
example
```arduino
if (section & CFG_HLP_MODBUS) {
DebuglnF("\r\n===== Modbus");
DebugF("Speed       : "); Debug(config.modbus.baud);

switch (config.modbus.proto & UART_NB_BIT_MASK) {
case UART_NB_BIT_5: Debug(" 5"); break;
case UART_NB_BIT_6: Debug(" 6"); break;
case UART_NB_BIT_7: Debug(" 7"); break;
case UART_NB_BIT_8: Debug(" 8"); break;
default : Debug(" ?"); break;
}
switch (config.modbus.proto & UART_PARITY_MASK) {
case UART_PARITY_NONE: Debug("N"); break;
case UART_PARITY_EVEN: Debug("E"); break;
case UART_PARITY_ODD : Debug("O"); break;
default : Debug("?"); break;
}
switch (config.modbus.proto & UART_NB_STOP_BIT_MASK) {
case UART_NB_STOP_BIT_0: Debug("0"); break;
case UART_NB_STOP_BIT_1: Debug("1"); break;
case UART_NB_STOP_BIT_15: Debug("15"); break;
case UART_NB_STOP_BIT_2 : Debug("2"); break;
default : Debug("?"); break;
}

DebugF("\r\nSlave Addr  : "); Debugln(config.modbus.slave);
DebugF("Holding Reg : 0x"); Debugln2(config.modbus.hr_addr,HEX);
DebugF("Enable Pin  : "); Debugln(config.modbus.en_pin);
}
```
2016-02-11 17:47:49 +01:00
Nat Weerawan
25c25ae995 - Update board (ESPresso Lite) description. 2016-02-11 11:26:19 +07:00
Ivan Grokhotkov
0ad2738d81 Merge branch 'patch-1' of https://github.com/h4rm0n1c/Arduino into h4rm0n1c-patch-1
# Conflicts:
#	doc/libraries.md
2016-02-10 19:28:21 +03:00
Ivan Grokhotkov
8bbc8d6e8b Merge pull request #1610 from WereCatf/patch-1
Add PCF8574 - library to the list.
2016-02-10 19:22:46 +03:00
Ivan Grokhotkov
0550e7283f Merge pull request #1608 from narongrat/master
Add ESPino (WROOM-02) by ThaiEasyElec.com
2016-02-10 19:22:28 +03:00
Ivan Grokhotkov
7cca087421 Merge pull request #1606 from krzychb/master
Added DImSwith to "Other libraries (not included with the IDE)"
2016-02-10 19:21:17 +03:00
Ivan Grokhotkov
33665c08f1 Merge pull request #1605 from cmmakerclub/master
Add ESPert's ESPresso Lite to boards.txt & variants
2016-02-10 19:20:51 +03:00
Ivan Grokhotkov
09f8284d5e Merge pull request #1600 from shmuelzon/manifest-content-type
Added 'text/cache-manifest' content type
2016-02-10 19:19:31 +03:00
Ivan Grokhotkov
f77d996fe9 Merge pull request #1596 from hallard/master
Added universal Teleinfo to libraries.md
2016-02-10 19:19:10 +03:00
Ivan Grokhotkov
d868be956c Merge pull request #1590 from probonopd/patch-2
Add esp8266_mdns to libraries.md
2016-02-10 19:18:48 +03:00
Harrison Mclean
36a6ce1f61 Update libraries.md
Added DMD2 Library
2016-02-10 03:33:55 +08:00
WereCatf
93a40d82a3 Add PCF8574 - library to the list. 2016-02-08 20:26:56 +02:00
Narongrat Srimee
708c7823df Add LED_BUILTIN definition #1556 2016-02-08 20:18:27 +07:00
Narongrat Srimee
bd0c9f7394 Update boards.txt 2016-02-08 20:16:31 +07:00