Go to file
Joerg Wunsch da0e437eaa Ensure page_size is always at least 1
This avoids potential divisions by 0, and possibly also other mistakes
in case of malformed avrdude.conf entries.

The solution is different than the one in patch #9820 but is supposed
to cover that condition as well.

patch #9820: Fix some out-of-bounds/uninitialized issues



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1436 81a1dc3b-b13d-400b-aceb-764788c761c2
2020-09-10 21:37:34 +00:00
atmel-docs Just to make sure this won't get lost over time, make a copy of 2015-11-02 21:13:28 +00:00
doc bug #57428: [PATCH] document when 'arduino' or 'wiring' should be used, and -D requirement of latter 2019-12-17 22:31:51 +00:00
tools patch #9506: Script to create device configuration stub from Atmel ATDF files 2018-01-10 06:59:26 +00:00
windows patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
.cvsignore So finally, also ignore the Makefile. 2006-08-23 15:02:07 +00:00
AUTHORS Fix author name in some files. 2018-03-15 22:03:36 +00:00
BUILD-FROM-SVN Submitted by Philip: 2011-08-16 10:37:09 +00:00
COPYING Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ChangeLog patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
ChangeLog-2001 Use my other e-mail. 2003-03-12 01:25:43 +00:00
ChangeLog-2002 Use my other e-mail. 2003-03-12 01:25:43 +00:00
ChangeLog-2003 * ChangeLog: Minor formatting cleanups. 2004-01-26 06:27:41 +00:00
ChangeLog-2004-2006 Fix author name in some files. 2018-03-15 22:03:36 +00:00
ChangeLog-2007 ChangeLog rotation for 2007->2008 transition. 2008-01-26 07:59:07 +00:00
ChangeLog-2008 Annual changelog rotation. 2009-02-05 16:17:57 +00:00
ChangeLog-2009 Annual changelog rotation. 2010-01-08 10:41:27 +00:00
ChangeLog-2010 Delete unneeded svn:executable property. 2011-08-12 15:37:44 +00:00
ChangeLog-2011 bug #21663 AT90PWM efuse incorrect 2012-01-02 15:20:18 +00:00
ChangeLog-2012 Annual ChangeLog rotation time. 2013-01-02 10:12:41 +00:00
ChangeLog-2013 Annual changelog rotation. 2014-01-15 13:16:34 +00:00
ChangeLog-2014 Annual ChangeLog rotation (quite late this year). 2015-04-09 19:48:01 +00:00
ChangeLog-2015 Annual changelog rotation. 2016-02-09 14:23:03 +00:00
ChangeLog-2016 Annual changelog rotation. 2017-03-05 18:21:08 +00:00
ChangeLog-2017 Annual ChangeLog rotation. 2018-01-09 23:17:54 +00:00
ChangeLog-2018 Annual ChangeLog rotation. 2019-01-05 22:59:06 +00:00
ChangeLog-2019 Annual ChangeLog rotation 2020-03-11 09:42:02 +00:00
Makefile.am Submitted by Yegor Yefremov: 2018-01-12 22:07:39 +00:00
NEWS patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
README Give some more installation/building hints. 2013-09-17 20:50:30 +00:00
arduino.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
arduino.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
avr.c Fix compiler warnings 2020-03-11 09:41:15 +00:00
avr910.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
avr910.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrdude.1 bug #57428: [PATCH] document when 'arduino' or 'wiring' should be used, and -D requirement of latter 2019-12-17 22:31:51 +00:00
avrdude.conf.in Submitted by Jan Egil Ruud: 2018-01-18 21:52:00 +00:00
avrdude.h added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
avrdude.spec.in Submitted by Galen Seitz: 2005-11-29 20:28:51 +00:00
avrftdi.c patch #8895: Spelling in 6.2 code 2016-02-15 20:29:53 +00:00
avrftdi.h bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:38:52 +00:00
avrftdi_private.h avrftdi_private.h: added missing msg level for avrdude_message in E/E_VOID macros 2014-06-17 20:27:37 +00:00
avrftdi_tpi.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrftdi_tpi.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrpart.c Ensure page_size is always at least 1 2020-09-10 21:37:34 +00:00
bitbang.c Fix author name in some files. 2018-03-15 22:03:36 +00:00
bitbang.h Fix author name in some files. 2018-03-15 22:03:36 +00:00
bootstrap bootstrap: Detect whether libtoolize is named `glibtoolize' (MacOS) 2017-12-29 22:23:06 +00:00
buspirate.c patch #8504 buspirate: Also support "cpufreq" extended parameter in binary mode 2014-11-13 13:53:47 +00:00
buspirate.h patch #7724 Add TPI support for Bus Pirate using bitbang mode 2013-01-30 21:15:39 +00:00
butterfly.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
butterfly.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
config.c patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
config.h Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
config_gram.y Ensure page_size is always at least 1 2020-09-10 21:37:34 +00:00
configure.ac Fix a typo in previous commit. 2018-01-21 22:21:25 +00:00
confwin.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
crc16.c Major code cleanup. 2007-01-24 22:43:46 +00:00
crc16.h Major code cleanup. 2007-01-24 22:43:46 +00:00
dfu.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
dfu.h * flip2.c (flip2_page_erase): Remove unimplemented function. 2014-01-17 14:00:01 +00:00
fileio.c Fix compiler warnings 2020-03-11 09:41:15 +00:00
flip1.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
flip1.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
flip2.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
flip2.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
freebsd_ppi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ft245r.c Submitted by: kautism 2020-03-11 12:39:57 +00:00
ft245r.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
jtag3.c Submitted by Jan Egil Ruud: 2018-01-18 21:52:00 +00:00
jtag3.h Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2017-11-29 23:09:51 +00:00
jtag3_private.h Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2017-12-30 00:05:54 +00:00
jtagmkI.c bug #43137: Writing and reading incorrect pages when using jtagicemkI 2014-11-23 20:57:17 +00:00
jtagmkI.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
jtagmkII.c patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
jtagmkII.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
jtagmkII_private.h Fix byte-wise EEPROM and flash writes on Xmega 2013-09-08 19:57:58 +00:00
jtagmkI_private.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
lexer.l Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2018-01-09 23:29:31 +00:00
libavrdude.h Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2018-01-16 21:17:04 +00:00
linux_ppdev.h * linux_ppdev.h: added missing msg level for avrdude_message in ppi_claim/ppi_release macros 2014-06-23 20:20:38 +00:00
linuxgpio.c bug #47550: Linux GPIO broken 2016-03-28 17:29:30 +00:00
linuxgpio.h patch #7165 Add support for bitbanging GPIO lines using the Linux sysf GPIO interface 2013-01-09 19:23:30 +00:00
lists.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
main.c Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2018-01-16 21:17:04 +00:00
my_ddk_hidsdi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
par.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
par.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
pgm.c Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
pgm_type.c Submitted by Jan Egil Ruud <janegil.ruud@microchip.com> 2017-11-29 23:09:51 +00:00
pickit2.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
pickit2.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
pindefs.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
ppi.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
ppi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ppiwin.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
safemode.c Reported by Roger A. Krupski: 2017-03-05 18:23:18 +00:00
ser_avrdoper.c Submitted by Axel Simon: 2018-01-14 23:12:06 +00:00
ser_posix.c Submitted by Reinhard Max 2018-01-17 07:39:29 +00:00
ser_win32.c Properly declare arg #2 of net_send() (in ser_win32.c) as being a pointer 2014-11-26 09:38:15 +00:00
serbb.h Fix author name in some files. 2018-03-15 22:03:36 +00:00
serbb_posix.c Fix author name in some files. 2018-03-15 22:03:36 +00:00
serbb_win32.c Fix author name in some files. 2018-03-15 22:03:36 +00:00
solaris_ecpp.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
stk500.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500_private.h Add support for displaying and changing the various STK500 operational 2003-07-24 21:26:28 +00:00
stk500generic.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
stk500generic.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500v2.c patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
stk500v2.h * pgm_type.c: Add "jtagice3_isp" programmer hook 2012-12-03 15:52:38 +00:00
stk500v2_private.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
term.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
term.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
tpi.h avr.c: Adds avr_tpi_program_enable 2013-05-06 12:49:26 +00:00
update.c patch #9819: Address several leaks in SVN rev 1429 2020-03-14 22:34:45 +00:00
usb_hidapi.c In usbhid_open(), correctly calculate the 2016-04-18 14:47:53 +00:00
usb_libusb.c patch #8435: Implementing mEDBG CMSIS-DAP protocol 2016-02-15 19:58:45 +00:00
usbasp.c Submitted by Maciej: 2018-01-16 22:40:28 +00:00
usbasp.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
usbdevs.h Add the new Atmel-ICE, in all of JTAG, PDI, dW, and ISP modes. 2014-02-28 14:36:38 +00:00
usbtiny.c Submitted by Martino Facchin: 2019-01-05 23:16:11 +00:00
usbtiny.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
wiring.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
wiring.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00

README

See the documentation file for the details.

The latest version of AVRDUDE is always available here:

  http://savannah.nongnu.org/projects/avrdude


Important environment variables for ./configure:
================================================

CPPFLAGS: C preprocessor flags (*not* "C++")

This is the place to put additional (non-standard) -I options into.
For example, if your Windows system has LibUSB-Win32 installed into
\\WINDOWS\ProgramFiles\LibUSB-Win32, use

CPPFLAGS=-I/WINDOWS/ProgramFiles/LibUSB-Win32/include

to tell configure where to search for the header files.  (The use of
forward slashes rather than backslashes can often simplify things.
Note that the Windows system services internally treat both the same.
It's only cmd.exe which requires backslashes as the directory
separator.)

LDFLAGS: Linker options

This is the place to make additional library locations known to the
linker.  To continue the above example, use

LDFLAGS=-L/WINDOWS/ProgramFiles/LibUSB-Win32/lib/gcc

to make the linker search for "libusb.a" in that directory.


Linux users: make sure the header files are installed
=====================================================

While many Linux distributions install the libraries needed by AVRDUDE
(libusb, libelf) by default, they leave out the corresponding header
files.  Consequently, the configure script won't find them, so these
libraries could not be used.

Usually, the packages with the header files (and static libraries) are
derived from the regular package name by appending "-devel".  Thus,
make sure you have "libusb-devel" and "libelf-devel" installed before
running the configure script.  (Same goes for libftdi.)