Ben Pfaff [Mon, 10 Jul 2017 20:49:13 +0000 (13:49 -0700)]
zip-reader: Use xstrdup() instead of strdup().
John Darrington [Sat, 8 Jul 2017 20:26:29 +0000 (22:26 +0200)]
Move XML declarations to the start of .ui files.
Apparently xgettext complains if comments start the file.
John Darrington [Sat, 8 Jul 2017 04:29:43 +0000 (06:29 +0200)]
Fix erroneous subsitute by previous commit.
Commit
691a034d7f2139076fa012739dffd40ef5db4a9b inadvertenntly
commented out the first line of every .at file. This commit
fixes that.
John Darrington [Wed, 5 Jul 2017 19:02:56 +0000 (21:02 +0200)]
Add copyright and licence notices to files which lack them.
The savannah hackers have been recently complaining about lack of copyright/licence notices.
Ben Pfaff [Tue, 4 Jul 2017 17:13:15 +0000 (13:13 -0400)]
tests: Add tests against regression for two previously fixed bugs.
Ben Pfaff [Tue, 4 Jul 2017 16:58:55 +0000 (12:58 -0400)]
sys-file-reader: Fix integer overflows in parse_long_string_missing_values().
Crafted system files caused integer overflow errors that in turn caused
aborts. This fixes the problem.
CVE-2017-10791.
See also https://bugzilla.redhat.com/show_bug.cgi?id=
1467004.
See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866890.
See also https://security-tracker.debian.org/tracker/CVE-2017-10791.
Found by team OWL337, using the collAFL fuzzer.
Ben Pfaff [Tue, 4 Jul 2017 16:54:47 +0000 (12:54 -0400)]
sys-file-reader: Avoid null dereference skipping bad extension record 18.
read_record() assumed that read_extension_record() never set its output
argument to NULL when it returned true, but this is possible in an error
case.
CVE-2017-10792.
See also https://bugzilla.redhat.com/show_bug.cgi?id=
1467005.
See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866890.
See also https://security-tracker.debian.org/tracker/CVE-2017-10792.
Reported by team OWL337, with fuzzer collAFL.
Ben Pfaff [Tue, 27 Jun 2017 22:10:00 +0000 (18:10 -0400)]
Update version number to 0.10.5-pre2.
This prerelease is to update the Gnulib version, to fix the GCC 7 problems.
Ben Pfaff [Tue, 27 Jun 2017 21:54:42 +0000 (17:54 -0400)]
README.Git: Recommend newer Gnulib, to avoid GCC 7 segfaults.
Reported by Matthias Klose <doko@debian.org>
at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853623.
Bug #51318.
Ben Pfaff [Tue, 27 Jun 2017 21:52:40 +0000 (17:52 -0400)]
perl-module: Avoid VERSION redefinition warning from compiler.
If the PSPP version includes a suffix like "-pre1", then Perl will strip
that suffix from the version it passes to the compiler using -DVERSION=...,
and <config.h> will re-define it with the full version string. This causes
a warning.
This change avoids the warning. I am not yet aware of a new problem that
it causes.
John Darrington [Mon, 19 Jun 2017 10:44:16 +0000 (12:44 +0200)]
FACTOR: Improve calculation of Kaiser-Meyer-Olkin and add a test
John Darrington [Sun, 18 Jun 2017 19:34:47 +0000 (21:34 +0200)]
FACTOR: Add Anti-image matrix output
John Darrington [Sat, 17 Jun 2017 04:49:55 +0000 (06:49 +0200)]
Updated German translation from translationproject.org
John Darrington [Sat, 17 Jun 2017 04:48:28 +0000 (06:48 +0200)]
Add documentation for MATRIX DATA /N
John Darrington [Fri, 16 Jun 2017 09:34:27 +0000 (11:34 +0200)]
MATRIX DATA: Add /N subcommand
John Darrington [Thu, 15 Jun 2017 14:48:19 +0000 (16:48 +0200)]
Allow dialog boxes to be cancelled by hitting the Escape key.
Closes bug #51225
Friedrich Beckmann [Sun, 11 Jun 2017 18:56:35 +0000 (20:56 +0200)]
Fixed perl regression problem due to Version name - Fixes Bug #51218
The regression failed in some perl tests due to an incompatible
pspp version number. I changed to a version number that includes
a "-". The problem is described in acinclude.m4. See
The PSPP autobuilder appends a build number to the PSPP version number,
e.g. "0.7.2-build40". But Perl won't parse version numbers that contain
anything other than digits and periods, so "-build" causes an error. So we
define $(VERSION_FOR_PERL) that drops everything from the hyphen onward.
VERSION_FOR_PERL=`echo "$VERSION" | sed 's/-.*//'`
AC_SUBST([VERSION_FOR_PERL])
The version name was 0.10.5pre1 without a "-". Therefore the version name
for perl results in a problem.
John Darrington [Fri, 2 Jun 2017 08:12:15 +0000 (10:12 +0200)]
Use a more reliable way of setting the initial state of PsppireDialogAction objects.
John Darrington [Fri, 2 Jun 2017 06:43:04 +0000 (08:43 +0200)]
Fix bug where the Examine subdialogs appeared multiple times.
John Darrington [Wed, 31 May 2017 12:23:01 +0000 (14:23 +0200)]
Update translations from translationproject.org
John Darrington [Tue, 23 May 2017 19:22:11 +0000 (21:22 +0200)]
Remove duplicate accelerator from the one-way anova menuitem.
Reported-by: Yuri Chornoivan
Ben Pfaff [Sat, 20 May 2017 22:17:05 +0000 (15:17 -0700)]
Update version number to 0.10.5pre1, for translations.
John Darrington [Sat, 20 May 2017 18:54:06 +0000 (20:54 +0200)]
K Independent Samples Dialog: Fix compiler warnings.
John Darrington [Thu, 18 May 2017 16:25:32 +0000 (18:25 +0200)]
Updated the Dutch translation from translationproject.org
John Darrington [Tue, 16 May 2017 12:00:55 +0000 (14:00 +0200)]
Remove commented out code
John Darrington [Tue, 16 May 2017 12:00:39 +0000 (14:00 +0200)]
Fix potential crash if matrix file variables are of unexpected types
John Darrington [Tue, 16 May 2017 10:53:35 +0000 (12:53 +0200)]
Fix buffer overflow which could occur if the matrix reader encounters a badly formed file.
John Darrington [Tue, 16 May 2017 10:54:03 +0000 (12:54 +0200)]
Remove unreachable code
Ben Pfaff [Tue, 16 May 2017 04:04:58 +0000 (21:04 -0700)]
matrix-reader: Use strcpy() on char arrays, in next_matrix_from_reader().
Fixes GCC warning "pointer targets in passing argument 1 of 'strcpy'
differ in signedness".
Ben Pfaff [Tue, 16 May 2017 04:00:56 +0000 (21:00 -0700)]
factor: Fix return type of do_factor_by_matrix().
This function had a "bool" return type but nothing used it.
Fixes GCC warning "'return' with no value, in function returning non-void".
Reported by Jeremy Lavergne.
John Darrington [Sat, 13 May 2017 17:26:17 +0000 (19:26 +0200)]
New Dialog: Non Parametric | K Indepdendent Samples
John Darrington [Mon, 15 May 2017 07:00:45 +0000 (09:00 +0200)]
PsppireValueEntry: Use a more reliable way to override parent property.
Setting the property in the _new function doesn't work if the object is constructed
via GtkBuilder for example.
John Darrington [Sat, 13 May 2017 09:19:58 +0000 (11:19 +0200)]
Zip Reader: initialise error string earlier.
Fixed a bug which could have caused a crash if pspp were presented
with a corrupt zip file.
John Darrington [Fri, 12 May 2017 15:03:06 +0000 (17:03 +0200)]
Fixed bug which caused a crash in GET DATA
John Darrington [Fri, 12 May 2017 10:25:55 +0000 (12:25 +0200)]
MEANS: Prevent parser from entering infinite loop.
Fixes bug #51008
.
John Darrington [Fri, 12 May 2017 09:35:09 +0000 (11:35 +0200)]
src/math/linreg.c: Don't calculate the intercept for regression through the origin
John Darrington [Fri, 12 May 2017 06:36:56 +0000 (08:36 +0200)]
src/math/linreg.c: Encapsulate this object better.
John Darrington [Fri, 12 May 2017 05:42:55 +0000 (07:42 +0200)]
REGRESSION: Implement /ORIGIN subcommand.
John Darrington [Thu, 11 May 2017 14:38:11 +0000 (16:38 +0200)]
DESCRIPTIVES: Fix a bug where the parser could enter an infinite loop
John Darrington [Thu, 11 May 2017 12:01:50 +0000 (14:01 +0200)]
FACTOR: Don't try to perform analysis if there are no variables.
John Darrington [Thu, 11 May 2017 11:48:31 +0000 (13:48 +0200)]
FACTOR: Do not try to run an analysis if no matrix is present
John Darrington [Thu, 11 May 2017 11:22:37 +0000 (13:22 +0200)]
FACTOR: Fix a crash when bad input was presented
John Darrington [Thu, 11 May 2017 10:42:10 +0000 (12:42 +0200)]
FACTOR: Make idata parameters const where they can be.
John Darrington [Thu, 11 May 2017 08:40:51 +0000 (10:40 +0200)]
DATA MATRIX: Avoid crash on invalid input
John Darrington [Wed, 10 May 2017 14:43:39 +0000 (16:43 +0200)]
Fix memory leaks in FACTOR/MATRIX
John Darrington [Wed, 10 May 2017 10:59:11 +0000 (12:59 +0200)]
Remove unused variable
John Darrington [Wed, 10 May 2017 10:48:17 +0000 (12:48 +0200)]
FACTOR: Use consistent indexing when displaying matrices.
In any sane use case this will make no difference, since
all covariance and correlation matrices are symetrical.
However for correctness and ease of debugging this helps.
John Darrington [Wed, 10 May 2017 10:41:40 +0000 (12:41 +0200)]
matrix reader: Fix bug which incorrectly read in matrix material.
John Darrington [Wed, 10 May 2017 08:50:12 +0000 (10:50 +0200)]
MATRIX DATA: Allow non-symetric matrices if /FORMAT = FULL.
John Darrington [Wed, 10 May 2017 05:54:02 +0000 (07:54 +0200)]
Matrix reader, fix comment to reflect reality.
John Darrington [Tue, 9 May 2017 14:41:08 +0000 (16:41 +0200)]
MATRIX DATA: Cope with long variable names
John Darrington [Tue, 9 May 2017 13:13:32 +0000 (15:13 +0200)]
FACTOR: Allow an option '=' after MATRIX
John Darrington [Tue, 9 May 2017 07:46:29 +0000 (09:46 +0200)]
REGRESSION: Allow independent variables to be specified on the ENTER subcommand.
This is more typical of the syntax that third party software generates.
John Darrington [Thu, 4 May 2017 16:17:11 +0000 (18:17 +0200)]
FACTOR: Add printout of the covariance matrix and add a test
John Darrington [Thu, 4 May 2017 15:31:37 +0000 (17:31 +0200)]
FACTOR: New subcommand: MATRIX IN
John Darrington [Thu, 4 May 2017 15:27:31 +0000 (17:27 +0200)]
New function covariance_from_correlation
John Darrington [Thu, 4 May 2017 15:25:49 +0000 (17:25 +0200)]
New module matrix-reader
Added a new module to help read the files created by MATRIX DATA
John Darrington [Mon, 1 May 2017 19:02:22 +0000 (21:02 +0200)]
MATRIX DATA: Fix crash when duplicate variables are specified
John Darrington [Mon, 1 May 2017 18:30:45 +0000 (20:30 +0200)]
MATRIX DATA: Handle multiple splits properly
John Darrington [Sun, 30 Apr 2017 18:35:55 +0000 (20:35 +0200)]
MATRIX DATA: Rewrite to canonical rowtype values
John Darrington [Sun, 30 Apr 2017 07:59:16 +0000 (09:59 +0200)]
Updated the French translation from translationproject.org
John Darrington [Wed, 26 Apr 2017 17:06:53 +0000 (19:06 +0200)]
Added the MATRIX DATA procedure.
John Darrington [Wed, 26 Apr 2017 12:47:10 +0000 (14:47 +0200)]
parse_DATA_LIST_vars: Reduce scope of variable 'name2'
John Darrington [Sat, 22 Apr 2017 18:20:24 +0000 (20:20 +0200)]
Whitespace changes only: Remove trailing whitespace
John Darrington [Wed, 19 Apr 2017 16:48:51 +0000 (18:48 +0200)]
Do not allow value labels dialog to enter a label for an invalid value.
Fixes bug #45429
John Darrington [Tue, 18 Apr 2017 16:31:50 +0000 (18:31 +0200)]
Remove inappropriate single selection-mode properties from dialog actions.
Closes bug #50029
John Darrington [Sun, 16 Apr 2017 12:18:29 +0000 (14:18 +0200)]
Don't try to use TIOCGWINSZ if termios.h is not available.
John Darrington [Tue, 28 Mar 2017 05:25:56 +0000 (07:25 +0200)]
Fix grammatical error in NEWS
Ben Pfaff [Sat, 15 Apr 2017 20:51:37 +0000 (13:51 -0700)]
tests: Do not delete testsuite on distclean.
The testsuite is distributed, so distclean must not delete it.
Thanks to Harry Thijssen <pspp4windows@gmail.com> for reporting the problem.
John Darrington [Mon, 27 Mar 2017 17:30:28 +0000 (19:30 +0200)]
Edit|Options: Add fields to change behaviour of output window.
John Darrington [Sat, 25 Mar 2017 21:47:27 +0000 (22:47 +0100)]
New menu: Edit|Options
Add a new menu to set global options. Currently it only affects the display
of variables in Dictionary Views.
John Darrington [Fri, 24 Mar 2017 16:40:39 +0000 (17:40 +0100)]
Html Driver: Fix bug when rendering small cells.
This fix avoids a bug where the driver would enter a tight loop when rendering cells
with zero height or width.
John Darrington [Fri, 24 Mar 2017 10:38:58 +0000 (11:38 +0100)]
Updated NEWS file.
John Darrington [Fri, 24 Mar 2017 07:29:31 +0000 (08:29 +0100)]
Terminal interface: Remove support for the ncurses library.
This library was supported for trivial reasons. It always gave rise
to portability issues and was a pain to support. Furthermore there
is a simpler way to do what we used it for. So now we use that way
instead.
John Darrington [Wed, 15 Mar 2017 07:52:28 +0000 (08:52 +0100)]
Mann Whitney: Remove unused variable
John Darrington [Tue, 7 Mar 2017 05:31:49 +0000 (06:31 +0100)]
Fixed a bug in the Mann-Whitney test vs. missing=analysis.
When missing values were deleted from the dataset, they were deleted after the
ranks for the U value had been inserted, - thus the wrong rank sum would be
calculated. This change deletes missing values *before* the ranks are inserted.
The issue this fixes is described at
http://lists.gnu.org/archive/html/pspp-users/2017-03/msg00009.html
Friedrich Beckmann [Tue, 21 Feb 2017 14:52:41 +0000 (15:52 +0100)]
FREQUENCIES: fixed VARIANCE output - fixes bug #50366
The FREQUENCIES command output the mean instead of variance result when
variance was requested. The bug and a patch was reported on savannah.
I added a test to identify the problem and the proposed patch.
fixes bug #50366
John Darrington [Sat, 14 Jan 2017 11:22:13 +0000 (12:22 +0100)]
tests: Avoid infinite loop in test.
John Darrington [Sat, 14 Jan 2017 10:15:12 +0000 (11:15 +0100)]
tests: Ensure that the testsuite is of non-zero size
John Darrington [Sat, 14 Jan 2017 06:51:18 +0000 (07:51 +0100)]
psppire-import-assistant: Use maximised window instead of full_screen.
A number of users had complained about the full screen window.
Fixes bug #48230
John Darrington [Sat, 14 Jan 2017 06:28:52 +0000 (07:28 +0100)]
po: Add new variable LOCALPOFILES to hold locally managed .po files
This variable holds .po files not managed by translationproject.org
John Darrington [Sun, 21 Aug 2016 12:29:21 +0000 (14:29 +0200)]
Ensure that help page manifest is not empty.
For some reason I have found that sometimes doc/help-pages-list
is zero bytes long. I don't know how this happens, but this
change should catch it and allow us to find out why.
Ben Pfaff [Sat, 24 Dec 2016 00:49:15 +0000 (16:49 -0800)]
po: Update translations from translationproject.org.
Ben Pfaff [Sun, 4 Dec 2016 21:31:44 +0000 (13:31 -0800)]
Update all translations using "make po-update".
This only adds an "X-Bugs:" line to the translations, which were otherwise
up-to-date except that cs.po and en_GB.po aren't actually in
translationproject. I'll have to ask John Darrington about that.
Ben Pfaff [Sun, 4 Dec 2016 21:29:57 +0000 (13:29 -0800)]
po: Add po-update rule for updating all translations.
Ben Pfaff [Sun, 4 Dec 2016 21:17:57 +0000 (13:17 -0800)]
po: Update translations from translationproject.org.
Ben Pfaff [Sat, 3 Dec 2016 06:24:06 +0000 (22:24 -0800)]
Fix misleadingly indented statements.
GCC 6.2.1 reported {}-braced blocks that looked like they were guarded by
preceding "if" statements but really weren't. This fixes the misleading
indentation.
Ben Pfaff [Sat, 3 Dec 2016 06:23:12 +0000 (22:23 -0800)]
gui: Remove unused static variables.
Reported by GCC 6.2.1.
Ben Pfaff [Sat, 3 Dec 2016 06:18:16 +0000 (22:18 -0800)]
gui: Fix #includes for gtksourceview.
Newer versions of gtksourceview only allow gtksource.h to be included
directly, so this commit changes PSPPIRE to only include that header.
Ben Pfaff [Tue, 22 Nov 2016 18:50:16 +0000 (10:50 -0800)]
po: Update German translation from translationproject.org.
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 13:40:14 +0000 (14:40 +0100)]
typo in XEXPORT documentation
This typo was reported in the mailing list in message:
http://lists.gnu.org/archive/html/bug-gnu-pspp/2016-11/msg00001.html
Thank you for reporting the typo!
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 13:10:48 +0000 (14:10 +0100)]
fixed func macro in documentation - closes bug #49549
The func macro did not handle the argument correctly. All arguments were literally
replaced with NAME. I tested this on MacOS with the generated pdf.
Closes bug #49549
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 11:18:35 +0000 (12:18 +0100)]
compile without gnumeric and odf read support
This patch fixes the problem described in bug #49550. When libxml2 is
not installed, the gnumeric and odf read support is disabled. This was
not handled correctly. I changed the compilation requirements and the
error message handling if somebody tries to open a file.
Closes bug #49550.
Friedrich Beckmann [Mon, 10 Oct 2016 20:34:08 +0000 (22:34 +0200)]
reversed CFLAGS, CPPFLAGS and LDFLAGS addition for q2c.c build
Ben mentioned that this will break the cross compile build. So
I reverted this change.
Friedrich Beckmann [Mon, 10 Oct 2016 17:39:06 +0000 (19:39 +0200)]
added CFLAGS, CPPFLAGS and LDFLAGS for PSPP.C and q2c.c compilation
The hardening check during the debian build process showed that the
hardening compile flags are not issued to the compilation process of
PSPP.c (the perl module) and q2c.c (the lexer). Although q2c.c is only
relevant during the build process hardening this will not hurt.
Friedrich Beckmann [Mon, 10 Oct 2016 10:55:01 +0000 (12:55 +0200)]
perl - added current directory path to calls
The perl INC path in debian does not include the current directory
anymore. Therefore I added the current directory path at the places
where a module is called and it is assumed that . is part of INC.
See: https://lwn.net/Articles/698853/
Ben Pfaff [Tue, 20 Sep 2016 18:03:30 +0000 (11:03 -0700)]
po: Update Spanish translation from translationproject.org.
Friedrich Beckmann [Fri, 16 Sep 2016 07:17:40 +0000 (09:17 +0200)]
help: added t-test reference to help page
The help button for the t-test dialogs ended on the main page. I added
a reference such that it lands on the t-test page in the documentation.
Friedrich Beckmann [Thu, 15 Sep 2016 18:25:36 +0000 (20:25 +0200)]
examples: t-test.sps fixed make process to include in distribution
I forgot to add the t-test.sps example in the automake.mk file to
include it in the distribution.
Friedrich Beckmann [Thu, 15 Sep 2016 08:30:10 +0000 (10:30 +0200)]
t-test example: Change some wrong comments
I had some wrong comments describing the code.