Commit Graph

28 Commits

Author SHA1 Message Date
Thomas Hebb
4c2e1c6dbb Remove executable permission from files that don't need it 2021-01-09 13:18:35 -08:00
Thomas Hebb
8ac96e8cff Merge remote-tracking branch 'upstream/master'
Merge in a number of upstream changes from Bouffalo, resolving
conflicts. Most conflicts came from warring whitespace fixes, which is
better than no whitespace fixes in either repo. I generally took the
upstream version in such cases to make future merges easier.

I have left out all upstream docs changes from this merge, since those
will have to be separately merged into our bl602-docs submodule.
2021-01-03 10:19:08 -08:00
Zhuoran.Rong
71e5f5e303 fix issue #18 2020-11-26 11:20:17 +08:00
qwang
25fb041d1c Add basic C++ support 2020-11-25 21:58:07 +08:00
Marek Kraus
c00a0980dc Revert "Added mbedTLS as a submodule (#64)"
This reverts commit 2aa0fdd6b6.
The difference between upstream mbedtls and AliOS mbedtls is too
huge
2020-11-23 12:44:11 +01:00
Robert Lipe
b96c037be0
In debug.c, don't compile code we aren't calling. (#31) 2020-11-19 18:33:08 +01:00
danielbarry
2aa0fdd6b6
Added mbedTLS as a submodule (#64)
Removed mbedTLS files and replaced them with a submodule
2020-11-19 16:04:07 +02:00
Robert Lipe
3bc544d9f3 clean components/ whitespace issues
image_conf, make_scripts_riscv -  Delete trailing spaces. Change tabs to 4 space multiples.

    .c and .h get tabs expanded to four spaces for consistency, traliing whitespace whacked.
    Makefiles do NOT get tabs changed.
2020-11-08 13:56:51 -06:00
Ferenc-
87d912e072 Remove trailing whitespaces from bl602 2020-11-05 10:21:53 +01:00
Rafał Mikrut
d9aa3c71fc Fix some Cppcheck findings 2020-10-31 22:17:04 +08:00
Samuel Thibault
8d1870b1b4 pppd: Fix the default value for ipv6cp-accept-local to false
The ipv6cp-accept-local option was supposed to enable it, but it is
already enabled by default, with no way to disable it.

For coherency with IPv4 and IPX, this disables ipv6cp-accept-local by
default, and the option can be used to enable it.

This also enables it automatically when the local id is not
specified, in coherency with IPv4 and IPX, and as the documentation was
saying.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-10-31 22:05:17 +08:00
Zsolt Prontvai
f4740481ad Remove references for ESP32 2020-10-31 21:57:21 +08:00
Paul Capron
c546054984 vfs: Fix counting in inode_avail_count
As seen in `inode_del` (and `inode_alloc`), a free (`NOT_INIT`) node can be found anywhere in `g_vfs_dev_nodes`; it’s a “sparse” list.
So when checking for free nodes, the iterating index variable (`e`) shall be used, not the counter (`count`). The code got that wrong.
For instance, if the first node is not available (type is not `VFS_TYPE_NOT_INIT`), then the function previously returned 0, no matter what, and was iterating the node list in vain.
2020-10-31 21:51:30 +08:00
Yafei
bc112954be
Merge pull request #3 from BKPepe/pppd
Fix buffer overflow in EAP
2020-10-30 13:53:17 +08:00
Rafał Mikrut
f760daf285 Fix some Cppcheck findings 2020-10-29 17:02:12 +01:00
Samuel Thibault
e2b52c1f1b
pppd: Fix the default value for ipv6cp-accept-local to false
The ipv6cp-accept-local option was supposed to enable it, but it is
already enabled by default, with no way to disable it.

For coherency with IPv4 and IPX, this disables ipv6cp-accept-local by
default, and the option can be used to enable it.

This also enables it automatically when the local id is not
specified, in coherency with IPv4 and IPX, and as the documentation was
saying.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-10-29 00:18:01 +01:00
Paul Mackerras
6131dfddd8
pppd: Ignore received EAP messages when not doing EAP
This adds some basic checks to the subroutines of eap_input to check
that we have requested or agreed to doing EAP authentication before
doing any processing on the received packet.  The motivation is to
make it harder for a malicious peer to disrupt the operation of pppd
by sending unsolicited EAP packets.  Note that eap_success() already
has a check that the EAP client state is reasonable, and does nothing
(apart from possibly printing a debug message) if not.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2020-10-29 00:18:01 +01:00
Paul Mackerras
c9ff47b828
pppd: Ignore received EAP messages when not doing EAP
This adds some basic checks to the subroutines of eap_input to check
that we have requested or agreed to doing EAP authentication before
doing any processing on the received packet.  The motivation is to
make it harder for a malicious peer to disrupt the operation of pppd
by sending unsolicited EAP packets.  Note that eap_success() already
has a check that the EAP client state is reasonable, and does nothing
(apart from possibly printing a debug message) if not.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2020-10-29 00:12:01 +01:00
Marek Kraus
d54b64bd30 Merging with upstream 2020-10-28 23:31:02 +01:00
Marek Kraus
328c0609b7
Merge pull request #20 from ProZsolt/remove-esp32-references
Remove references for ESP32
2020-10-28 23:03:31 +01:00
Marek Kraus
02249b86cf
Merge pull request #7 from PaulCapron/patch-1
vfs: Fix counting in `inode_avail_count`
2020-10-28 23:00:59 +01:00
Jesus Velazquez
838ff4f832 bl_sys_time.c: adds null pointer checks and extra spaces cleanup
Signed-off-by: Jesus Velazquez <jesus.velazquez@gmail.com>
2020-10-28 11:59:59 -07:00
Josef Schlehofer
87970e63c5
Fix buffer overflow in EAP
Fixes CVE-2020-8597
2020-10-28 19:41:15 +01:00
Zsolt Prontvai
3572e01f74 Remove references for ESP32 2020-10-28 17:46:37 +00:00
Jesus Velazquez
143f051b9c web_server.c: remove references to ESP32
Signed-off-by: Jesus Velazquez <jesus.velazquez@gmail.com>
2020-10-28 08:03:53 -07:00
Paul Capron
9d3c1f77da
vfs: Fix counting in inode_avail_count
As seen in `inode_del` (and `inode_alloc`), a free (`NOT_INIT`) node can be found anywhere in `g_vfs_dev_nodes`; it’s a “sparse” list.
So when checking for free nodes, the iterating index variable (`e`) shall be used, not the counter (`count`). The code got that wrong.
For instance, if the first node is not available (type is not `VFS_TYPE_NOT_INIT`), then the function previously returned 0, no matter what, and was iterating the node list in vain.
2020-10-28 11:36:43 +01:00
bouffalolab2020
61d60a3dc0
Delete README.md 2020-10-27 10:34:41 +08:00
Rujun Wang
ee4a10b1a1 Initial Commit 2020-10-26 20:35:25 +08:00